one vhost takes over entire server

Igor Sysoev is at rambler-co.ru
Mon Oct 29 18:19:30 MSK 2007


On Mon, Oct 29, 2007 at 03:26:02PM +0100, Almir Karic wrote:

> so this is the deal, i have a perferctly working nginx configuration
> 
> nginx.conf:
> http://www.kiberpipa.org/~redduck666/nginx.conf
> entire /etc/nginx/sites-enabled/
> http://www.kiberpipa.org/~redduck666/nginx/sites-enabled
> 
> 
> and than i try to add another vhost to the nginx server,
> http://www.kiberpipa.org/~redduck666/nginx/ooocon.kiberpipa.org, when
> i enable that vhosts no matter which site i request i get the content
> of the ooocon site.
> 
> 
> 
> 
> the same thing happens with
> http://www.kiberpipa.org/~redduck666/nginx/bruc06.org

You need to add

       location / {
            proxy_pass http://127.0.0.1:81;
+           proxy_set_host  Host  $host;
       }

       

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list