Welcome! Log In Create A New Profile

Advanced

Re: NginxHttpMapModule

October 16, 2009 10:54AM
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;
...
Subject Author Posted

NginxHttpMapModule

Goldcap October 15, 2009 05:34PM

Re: NginxHttpMapModule

Goldcap October 16, 2009 10:54AM

Re: NginxHttpMapModule

Igor Sysoev October 16, 2009 11:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready