I dont know if i can ask in the same topic my question...
i have a upstream of two servers which responds on host headers only (apache virtualhost's)
when i try to open the www.server.local (which is nginx frontend) i get only default web pages from backends and not the web1 or web2
what should i do to fix the problem ?
[code]
upstream backend {
server web1.local.com:80;
server web2.local.com:80;
}
server {
listen 80;
server_name www.domain.local;
location / {
proxy_pass http://backend;
proxy_set_header Host $host;
}
}
[/code]