Welcome! Log In Create A New Profile

Advanced

Re: listen directive

July 25, 2013 03:30AM
On Jul 25, 2013, at 11:23 , drook wrote:

> Hi.
>
> I've noticed that in configuratuion like
>
> http {
> server {
> server_name some.domain.tld;
> listen 1.1.1.1;
> }
> server {
> server_name another.domain.tld;
> listen 1.1.1.1;
> }
> server {
> server_name one_more.domain.tld *.domain.tld;
> listen 1.1.1.1;
> }
> server {
> server_name last.domain.tld;
> listen 80;
> }
> }
>
> weird thing happens: this somehow is similar to the apache directives, where
> you should use exactly the same "address:port" in "VirtualHost" clause as
> you used in "NameVirtualHost <address:port>" directive. For example if you
> used *, you should use it everywhere, otherwise namevhost won't work. I
> found that at least on 1.2.1 similar thing happens: vhost "last.domain.tld"
> may not get any requests at all, they will be served by the *.domain.tld,
> and, if removed, by the default vhost. So I changed everything to the
> "listen 80" and it resolved the situation.
>
> Is it some bug I stepped on, or is this normal, or, may be I just see things
> that aren't there ?

http://nginx.org/en/docs/http/request_processing.html#mixed_name_ip_based_servers


--
Igor Sysoev
http://nginx.com/services.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

listen directive

drook July 25, 2013 03:23AM

Re: listen directive

Igor Sysoev July 25, 2013 03:30AM

Re: listen directive

drook July 25, 2013 03:50AM

Re: listen directive

Francis Daly July 25, 2013 04:02AM

Re: listen directive

drook July 25, 2013 04:34AM

Re: listen directive

Ruslan Ermilov July 25, 2013 05:14AM

Re: listen directive

drook July 26, 2013 12:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 258
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready