Without editing:<br><br> location ~ \.php$ {<br> include conf/fastcgi_params;<br> fastcgi_pass unix:/home/nginx/phpcgi/USERNAME;<br> fastcgi_index index.php;<br>
}<br><br>Is there a way to add in nginx to send any *.html requests to as *.php to Nginx?<br><br>Without having to add another directive like:<br><br> location ~ \.html$ {<br> include conf/fastcgi_params;<br>
fastcgi_pass unix:/home/nginx/phpcgi/USERNAME;<br> fastcgi_index index.php;<br> }<br><br>Just to do what I want.<br><br>I am developing a backend for Nginx for in a shared-hosting environment, just I don't want to give customers access to edit this part of the config, so looking for a rewrite rule if possible to send *.html to *.php , or anything in that concept.<br>
<br>Thanks<br>