-
Notifications
You must be signed in to change notification settings - Fork 0
Nginx condition
Hill Liu edited this page May 11, 2022
·
2 revisions
location ~* \.(ico|css|js|gif|jpeg|jpg|png|woff|ttf|otf|svg|woff2|eot)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
if ($uri ~* ^.*?\.(ico|css|js|gif|jpeg|jpg|png|woff|ttf|otf|svg|woff2|eot)$) {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
https://gist.github.com/jrom/1760790
- http://nginx.org/en/docs/ngx_core_module.html#error_log
- debug, info, notice, warn, error, crit, alert, or emerg.
location ~ ^/index.php/ {
error_log /dev/shm/debug.log debug;
}
- https://xwsoul.com/posts/761
- if will let try_files invalid
try_files @heroku-fcgi @heroku-fcgi;