Showing 14 Result(s)
nginx location and root settings dont work

nginx location and root settings dont work

lenovouser asked: I am trying to rewrite every file after cdn.minora.me/forum/ to another directory: server { listen 443 ssl; listen [::]:443 ssl; ssl on; ssl_certificate /etc/nginx/ssl/minora.me.crt; ssl_certificate_key /etc/nginx/ssl/minora.me.key; root /srv/minora.me/webservices/cdn.minora.me; …

Serve a custom 404 page generated by PHP

Serve a custom 404 page generated by PHP

Matthieu Napoli asked: Here is how my php-fpm config is: location @site { fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_intercept_errors on; error_page 404 /404; } Because fastcgi_intercept_errors is enabled, …