Proxy subdomain root to a different server url
Vahan Yerkanian
vahan at helix.am
Sat May 12 10:37:32 UTC 2012
Hi,
I need to alias a subdomain to contents of an url, e.g. I need http://abcd.domain.com/ to proxy contents of http://www.domain.com/path1/path2/xyz
All my attempts with proxy_pass resulted in 301 to http://abcd.domain.com/path1/path2/xyz and a 404 with strange duplicate uri /path1/path2/xyzpath1/path2/xyz
server {
listen 11.22.33.44:80;
server_name abcd.domain.com;
location / {
proxy_pass http://www.domain.com/path1/path2/xyz;
}
}
I'm clearly missing something, please help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120512/e27aae6c/attachment-0001.html>
More information about the nginx
mailing list