Welcome! Log In Create A New Profile

Advanced

Re: Вопрос по server_name

February 15, 2013 05:06AM
On Feb 15, 2013, at 14:00 , Dmitriy Lyalyuev wrote:

> Добрый день.
>
> Есть конфиг типа:
> server{
> listen 80 default;
> server_name ~^(?:www\.)*(?<HBW>.+)$;
> ...
> }
>
> server{
> listen 10.0.3.132:80;
> server_name example.com www.example.com;
> ...
> }
>
> При обращении на test.example.com попадаю во второй сервер. Это ж вроде не верно. Или чего-то не понимаю?

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

При чтении нужно иметь ввиду, что "listen 80" - это "listen 0.0.0.0:80".


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

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

Вопрос по server_name

Dmitriy Lyalyuev February 15, 2013 05:02AM

Re: Вопрос по server_name

Igor Sysoev February 15, 2013 05:06AM

Re: Вопрос по server_name

VovansystemS February 15, 2013 05:06AM

Re: Вопрос по server_name

Anton Yuzhaninov February 15, 2013 05:06AM

Re: Вопрос по server_name

Dmitriy Lyalyuev February 15, 2013 05:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
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