server_name not working as intended ?

Igor Sysoev is at rambler-co.ru
Tue Apr 24 19:13:13 MSD 2007


On Tue, Apr 24, 2007 at 03:36:22PM +0200, Brice Figureau wrote:

> I'm discovering nginx, and it is a really good product.
> I'm willing to replace my old heavly patched thttpd with nginx, but I'm
> stumbling accross the following issue:
> 
> ...
> http {
>     access_log	/var/log/nginx/access.log;
>     server {
>         listen       8095;
>         server_name  www.domain1.com;
>         root /var/www/www.domain1.com;
>     }
>     server {
>         listen       8095;

-         listen       8095;
+         listen       8095 default;

>         server_name  www.domain2.com *;
>         root /var/www/www.domain2.com;
>     }
>  }
> ...


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





More information about the nginx mailing list