nginx - Exclude specific files in a "location" rule -


i "secured" wordpress installation making .php-files in /wp-content/ "not found"

location ~ ^/wp-content/.+\.php$ {       return 404;    } 

how can exclude specific files/directories in rule , make them executable again?


Comments