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 ?