Welcome! Log In Create A New Profile

Advanced

RemoveHandler in nginx

Posted by mahdi 
RemoveHandler in nginx
March 17, 2013 06:47PM
in my website users can upload their files and have a short url of that files. before this i used apache webserver but now i want to switch to nginx.

in apache i used this snippet to remove php handler for some directory that files are upload to that :

<Directory /var/www/unkown-user-data/uploads>
RemoveHandler .php .phtml .php3 .php5
RemoveType .php .phtml .php3 .php5
php_flag engine off
AddHandler default-handler .php
</Directory>

but now, how should am i do this on nginx webserver ?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready