forward by sub domain

Alex Egg eggie5 at gmail.com
Sat Sep 22 23:46:49 MSD 2007


ahh, thanks

On 9/22/07, Igor Sysoev <is at rambler-co.ru> wrote:
> On Sat, Sep 22, 2007 at 12:08:46AM -0700, Alex Egg wrote:
>
> > After I added the new server block and restarted nginx, I get this:
> >
> > 2007/09/22 00:07:37 [emerg] 21448#0: could not build the
> > server_names_hash, you should increase server_names_hash_bucket_size:
> > 32
> >
> > What should I do?
>
> http {
>     server_names_hash_bucket_size  64;
>     ...
>
> > On 9/21/07, Igor Sysoev <is at rambler-co.ru> wrote:
> > > On Fri, Sep 21, 2007 at 09:54:54PM -0700, Alex Egg wrote:
> > >
> > > > How can I make nginx forward any request for svn.mydomain.com to localhost:3000?
> > > >
> > > > This is my current upstream snippet:
> > > >
> > > > upstream mongrel {
> > > >     server 0.0.0.0:8000;
> > > >     server 0.0.0.0:8001;
> > > >     server 0.0.0.0:8002;
> > > >     # forward svn.mydomain.com to 0.0.0.0:3000 here
> > > >   }
> > >
> > > http {
> > >
> > >     upstream  mongrel {
> > >        ...
> > >     }
> > >
> > >     server {
> > >        ....
> > >     }
> > >
> > >     server {
> > >         server_name  svn.mydomain.com;
> > >
> > >         location / {
> > >             proxy_pass  http://localhost:3000;
> > >         }
> > >     }
> > >
> > > Do you plan to work read only with svn ?
> > >
> > >
> > > --
> > > Igor Sysoev
> > > http://sysoev.ru/en/
> > >
> > >
> >
>
> --
> Игорь Сысоев
> http://sysoev.ru
>
>


More information about the nginx mailing list