Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Deny Access to php files wordpress / excluding one path

$
0
0
Hello Folks!

I denied the direct access of php files ins my my site.conf (..../sites-enabled/mydomain.tld.conf)

# Disable direct access of any *.php in /wp_content folder
location ~ ^/wp-content/.+\.php$ {
return 444;
}

Thats working well!
But i grant access to one plugin folder:

/wp-content/plugins/these1plugin/

How can i exclude it?

Any idea

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>