NginxHttpMapModule

Goldcap nginx-forum at nginx.us
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  http://forum.nginx.org;
...

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,14117,14321#msg-14321






More information about the nginx mailing list