Skip to content

Move nginx_directives before location ~ \.php$. It fixes broken nginx directives

Christian requested to merge (removed):master into master

Moved nginx_directives before location ~ .php$. It fixes broken directives like https://webmasters.stackexchange.com/questions/85546/block-access-to-php-files-in-folder-in-nginx-under-ispconfig or https://www.howtoforge.de/forum/threads/nginx-default-php-location-und-cms-hardening.10408/. Tested it in different cases. No difference except that nginx directives work as intended.

Merge request reports