Page 1 of 1

Nginx .conf rules

PostPosted: January 16th, 2012, 2:27 pm
by jongsmith
I would like to use this plugin on my site which is hosted with Nginx. Does anyone have any standard rewrite rules for an Nginx .conf file to replace the Apache .htaccess mod_rewrite rules?

Many thanks,
Jon

Re: Nginx .conf rules

PostPosted: January 19th, 2012, 10:34 pm
by Raam Dev
Hi Jon,

There are no mod_rewrite rules required by s2Member by default. As long as you have WordPress running, you should be good to go.

That said, if you do need to add rewrites, they can go into the server{} section of your nginx configuration. A quick read of this page will help you figure out how to translate mod_rewrite directives to nginx's HTTP rewrite module syntax.

http://wiki.nginx.org/NginxHttpRewriteModule