I run Django for Nginx (like FASTCGI), and I need to "disconnect" a page in one domain from the root of another without redirecting or forwarding, for example.
Given that I have a general-stuff.com domain and the corresponding URL http://general-stuff.com/books/ , and that I have a second books-stuff.com domain I need a way to get the page served by http: / /general-stuff.com/books/ at the URL http://books-stuff.com/ , how would I do this?
Edit: Please note: I also need the tree under these URLs to work, for example. http://books-stuff.com/book1/ should serve the page http://general-stuff.com/books/book1/ etc.
Thanks in advance Richard.
You can use the proxy_pass configuration in Ngxinx.
proxy_pass
server { gzip on; listen 80; server_name books-stuff.com ; location / { proxy_pass http://general-stuff.com/books/; break; } }
Gotta do exactly what you want