Nikolay Shaplov
March 13, 2023 06:14AM
В письме от понедельник, 13 марта 2023 г. 12:40:14 MSK пользователь Илья
Шипицин написал:
> > A deployed server can have more than one possible value for this
> > variable, where several HTTP virtual hosts share the same IP address.
> > In that case, the server would use the contents of the request's Host
> > header field to select the correct virtual host.
> >
> > Мой вольный перевод "В случае если есть несколько кандидатов на заполнение
> > переменной окружения SERVER_NAME, например несколько виртальных хостов
> > использует один и тот же IP-адрес, серверу следует изучить содержимое
> > заголовка Host пришедшего в http-запросе и использовать его значение для
> > того
> > чтобы выбрать корректный virtual host"
>
> все верно. но это про другое же речь.
> в цитируемом фрагменте речь про то, что если у вас несколько виртуальных
> хостов, но выбрать правильный можно и нужно исходя из Host.
>
> но если по факту вы попали в дефолт, то выбор, описанный выше, вы уже
> сделали.

хорошо, давайте совсем на примерах.
В конфиге написано:

server_name h1.example.com h2.example.com h3.example.com;
include fastcgi_params;
fastcgi_pass unix:/var/run/my-fastcgi;

Я браузером захожу на h2.example.com

Что должно оказаться в SERVER_NAME для cgi-скрипта который будет отвечать на
этот запрос?

--
Nikolay Shaplov aka Nataraj
Fuzzing Engineer at Postgres Professional
Matrix IM: @dhyan:nataraj.su
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

[proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 05, 2023 10:42AM

Re: [proposal] SERVER_NAME в fastcgi_params

Evgeniy Berdnikov March 05, 2023 10:50AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 05, 2023 11:00AM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 05, 2023 02:06PM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 06, 2023 01:44AM

Re: [proposal] SERVER_NAME в fastcgi_params

Andrey Kopeyko March 06, 2023 06:00AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 06, 2023 06:08AM

Re: [proposal] SERVER_NAME в fastcgi_params

Andrey Kopeyko March 06, 2023 06:24AM

Re: [proposal] SERVER_NAME в fastcgi_params

Evgeniy Berdnikov March 06, 2023 09:18AM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 06, 2023 01:36PM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 06, 2023 01:38PM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 06, 2023 01:42PM

Re: [proposal] SERVER_NAME в fastcgi_params

Evgeniy Berdnikov March 06, 2023 01:52PM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 06, 2023 01:56PM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 06, 2023 03:02PM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 06, 2023 03:14PM

Re: [proposal] SERVER_NAME в fastcgi_params

Andrey Kopeyko March 06, 2023 03:26PM

Re: [proposal] SERVER_NAME в fastcgi_params

Evgeniy Berdnikov March 06, 2023 05:20PM

Re: [proposal] SERVER_NAME в fastcgi_params

Maxim Dounin March 06, 2023 07:24PM

Re: [proposal] SERVER_NAME в fastcgi_params

Maxim Dounin March 06, 2023 05:54PM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 06, 2023 10:18AM

Re: [proposal] SERVER_NAME в fastcgi_params

Dmitry Ivanov March 13, 2023 02:18AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 13, 2023 02:22AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maxim Dounin March 13, 2023 03:28AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 13, 2023 03:34AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maksim Kulik March 13, 2023 03:48AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 13, 2023 03:52AM

Re: [proposal] SERVER_NAME в fastcgi_params

Evgeniy Berdnikov March 13, 2023 04:38AM

Re: [proposal] SERVER_NAME в fastcgi_params

Evgeniy Berdnikov March 13, 2023 04:52AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maxim Dounin March 13, 2023 04:58AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 13, 2023 05:10AM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 13, 2023 05:42AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 13, 2023 06:14AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maksim Kulik March 13, 2023 06:18AM

Re: [proposal] SERVER_NAME в fastcgi_params

Nikolay Shaplov March 13, 2023 06:22AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maksim Kulik March 13, 2023 06:28AM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 13, 2023 06:52AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maksim Kulik March 13, 2023 06:54AM

Re: [proposal] SERVER_NAME в fastcgi_params

Илья Шипицин March 13, 2023 07:10AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maksim Kulik March 13, 2023 07:20AM

Re: [proposal] SERVER_NAME в fastcgi_params

Maxim Dounin March 13, 2023 04:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready