nginx-0.8.21

Steve steeeeeveee at gmx.net
Mon Oct 26 21:14:48 MSK 2009


-------- Original-Nachricht --------
> Datum: Mon, 26 Oct 2009 20:57:56 +0300
> Von: Igor Sysoev <is at rambler-co.ru>
> An: nginx at sysoev.ru
> Betreff: Re: nginx-0.8.21

> On Mon, Oct 26, 2009 at 06:49:09PM +0100, Steve wrote:
> 
> > 
> > -------- Original-Nachricht --------
> > > Datum: Mon, 26 Oct 2009 20:18:25 +0300
> > > Von: Igor Sysoev <is at rambler-co.ru>
> > > An: nginx at sysoev.ru
> > > Betreff: Re: nginx-0.8.21
> > 
> > > On Mon, Oct 26, 2009 at 06:04:34PM +0100, Steve wrote:
> > > 
> > > > > > > > How is that supposed to work? Should something like that
> here
> > > set
> > > > > that
> > > > > > > server to be the default if no match is found for the host
> > > requested?
> > > > > > > > ----------------
> > > > > > > > server {
> > > > > > > >   listen  80 default_server;
> > > > > > > > }
> > > > > > > > ------------
> > > > > > > 
> > > > > > > Yes, this parameter sets default server for given listen pair,
> > > "*:80"
> > > > > in
> > > > > > > this case. Actullay, "default_server" is just alias to a
> > > "default".
> > > > > I've
> > > > > > > introduced this name, because people treats the "default"
> > > parameter in
> > > > > > > 
> > > > > > > listen 80 default backlog=1000 ...;
> > > > > > > 
> > > > > > > as related to backlog, etc., although it means just default
> server
> > > for
> > > > > > > given listen pair.
> > > > > > > 
> > > > > > Does not work over here. I get a error in Firefox telling me
> > > something
> > > > > about the page not being correctly redirected.
> > > > > 
> > > > > Could you create debug log ?
> > > > > 
> > > > How?
> > > 
> > > ./configure --with-debug ...
> > > 
> > > nginx.conf:
> > > 
> > > error_log  /path/to/log  debug;
> > > 
> > 2009/10/26 16:36:12 [emerg] 31458#0: host not found in "default_server"
> of the "listen" directive in
> /var/www/hosting/vhosts.conf.d/front/2000_domain.tld.conf:5
> > 
> > What host does nginx have issue to find?
> 
> Could you show the 5th line of the 2000_domain.tld.conf ?
> 
1  server {
2   #====================================================
3   set          $vhost       "domain.tld";
4   set          $vhost_root  "/var/www/vu-hosting/$vhost";
5   listen       80 default_server;
6   server_name  www.domain.tld .domain.tld;
7   access_log   /var/www/vu-hosting/domain.tld/logs/access_log combined;
8   error_log    /var/www/vu-hosting/domain.tld/logs/error_log;
9   root         /var/www/vu-hosting/domain.tld/htdocs;


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

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01





More information about the nginx mailing list