forward by sub domain

Wayne E. Seguin wayneeseguin at gmail.com
Sun Sep 23 06:09:42 MSD 2007


On Sep 22, 2007, at 19:50 , Alex Egg wrote:
> This works, but the app sitting at localhost:3000 is expecting the
> request to come from svn.mydomain.com. Since it sees the domain
> localhost, it errors out.
>
> Is there  way to still proxy the request to localhost:300 but have it
> appear that it's from svn.mydomain.com?

Try something like this (untested):

upstream svn.mydomain.com {
   server 0.0.0.0:3000;
}
...
location / {
   proxy_pass http://svn.mydomain.com;
}

Don't forget about setting the proxy headers also.

   ~Wayne

s///g
Wayne E. Seguin
Sr. Systems Architect & Systems Administrator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070922/32b8aa3d/attachment.html>


More information about the nginx mailing list