![]() nf location: location ~ \.php(/|$) Īs recommended by the nginx documentation, although the nginx documentation also recommends not using if.Įrror pages # This passes 404 pages to Moodle so they can be themedĮrror_page 404 /error/index.php error_page 403 =404 /error/index.php for debian,Īdd the following 'slash arguments' compatible 'location' block to your vhosts 'server' in your nginx configuration (further explanation at ' Using slash arguments'). ![]() You should ensure that this behaviour is configured within your particular package/distribution, e.g. PHP-FPM's default behaviour for pools is usually to restrict the execution of scripts to a specific extension, i.e.php. Nginx is usually configured to interface with PHP via php-fpm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |