Welcome! Log In Create A New Profile

Advanced

Proxy one Domain to another and re-write path.

Posted by frozenskys 
Proxy one Domain to another and re-write path.
July 30, 2009 08:20AM
I can't seem to find any information about the proxy or rewrite modules for nginx to try and work this out myself, but what I'm trying to do is have the pages served at one domain available at another domain on a slightly different path.

If it helps I'm running Django under FASTCGI behind nginx behind Apache for domainX and I need to add rules for domainY such that:-

[b]http://domainY.com/book1/[/b] serves the page at [b]http://domainX.com/books/book1/[/b]
[b]http://domainY.com/book2/[/b] serves the page at [b]http://domainX.com/books/book2/[/b]
... etc.

Thanks in advance,
Richard.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready