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

Protect folder from running php and html

$
0
0
Hi

I am using this to disallow php running on a folder:


location ~^(/uploads/).*(\.php)$ {
deny all;
}


but how can i disallow both php and html to run on this folder?

Or is it possible to allow only images to run from this folder and how?

Thanks

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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