> ----------------------------------
> #Proxy server (Server1)
>
> # threedaystubble.com server
> server {
> listen 80;
> server_name www.threedaystubble.com threedaystubble.com;
> location / {
> proxy_pass http://192.168.3.5:80;
> }
> }
In this configuration nginx doesn't pass the Host header to backend.
In case there are multiple name based virtualhosts on the 192.168.3.5, you'll always get the default or first one (the order in the backend config).
Try to change to this and see if helps:
location / {
proxy_pass http://192.168.3.5:80;
proxy_set_header Host $host;
}
rr
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx