Goldcap nginx-forum at
Fri Oct 16 18:54:31 MSD 2009

To follow up, it's really simple. You don't need the Map module, just a text file with rewrite directives, and the include directive.

Doh! Not sure why I went the confusing route...

location / {
    include /path/to/rewrite_rules_x.txt;


cat /path/to/rewrite_rules_x.txt

rewrite	/aaa /someotherpage;
rewrite      /bbb;

Posted at Nginx Forum:,14117,14321#msg-14321

More information about the nginx mailing list