one vhost takes over entire server
Igor Sysoev
is at rambler-co.ru
Tue Oct 30 21:35:28 MSK 2007
On Tue, Oct 30, 2007 at 07:11:39PM +0100, Almir Karic wrote:
> anyone?
Actually, format you posted your configuration is difficult to understand.
Is listen 10.0.0.2:80; is the same as listen dogbert:80; or not ?
I see some duplicate names in servers, for example, ooocon.kiberpipa.org
nginx should warn about duplicate names in log.
> On 10/29/07, Almir Karic <redduck666 at gmail.com> wrote:
> > actually, it still doesn't work, same problems.
> >
> > this is what my two proxy codes look like:
> >
> >
> > location / {
> > proxy_pass http://127.0.0.1:81;
> > proxy_max_temp_file_size 10M;
> > proxy_set_header Host $host;
> > proxy_set_header X-Real-IP $remote_addr;
> > proxy_set_header X-Forwarded-For
> > $proxy_add_x_forwarded_for;
> > }
> >
> >
> > On 10/29/07, Almir Karic <redduck666 at gmail.com> wrote:
> > > On 10/29/07, Igor Sysoev <is at rambler-co.ru> wrote:
> > > > You need to add
> > > >
> > > > location / {
> > > > proxy_pass http://127.0.0.1:81;
> > > > + proxy_set_host Host $host;
> > > > }
> > >
> > > thanks
> > >
> > >
> > > (and it is ''proxy_set_header Host $host;'', just in
> > > case someone will be looking at this thread facing same troubles)
> > >
> > > --
> > > almir
> > >
> >
> >
> > --
> > almir
> >
>
>
> --
> almir
>
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list