Help with apache rewrite rule to nginx

Robert Gabriel lists at ruby-forum.com
Fri Dec 7 19:19:07 UTC 2012


Hello, would like to convert the below rule from Apache to nginx, but to
be honest I have no clue how.

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . - [L]

Please if someone knows, please let me know, thank you!

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list