12

How to convert apache rewrite to nginx?

view full story
linux-howto

http://serverfault.com – There is an old system which is needed to convert from apache to nginx, the following lines how to convert? Thank you. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{QUERY_STRING} ^download=true$ RewriteCond %{REQUEST_URI} ^(.+\.(gif|jpg|bmp)) RewriteRule ^.+$ - [T=application/binary] #standard function to force download RewriteCond %{QUERY_STRING} ^download=true$ RewriteRule ^(.*)([^/]+)/(.*) - [E=FILENAME:$3] Header set Content-Disposition "attachment; filename=\"%{FILENAME}e\"" env=FILENAME </IfModule> (HowTos)