Afternoon gentlemen,
My current setup is one single site, lets call that http://production.com, that's being served by Nginx on port 80 as a static cache and Apache in the background on port 8080 localhost, nothing fancy really and this works very well.
What I'm trying to do now is to make the URL http://production.com/foobar to include data from an external URL which we'll call http://internal.com/.
The issue I'm having is that if I browse to http://internal.com/ I get automatically redirected to http://www.internal.com/forum/forum.php due to this being a vBulletin forum that have their own internal redirects and what not based on the Site URL variable. Of course the same thing happens if I try to proxy it through Nginx, I just get "forwarded" to the ../forum/forum.php URL.
So, how would I go about to solve this? Is there a way to make that redirect invisible somehow and not let Nginx actually follow it in the address bar somehow? Basically an iframe without using an actual iframe. :-)
This is my Nginx code snippet I'm trying with now:
location /foobar {
proxy_pass http://internal.com/;
proxy_redirect off;
proxy_set_header Host $host;
}
Ideas? Thanks in advance.