Welcome! Log In Create A New Profile

Advanced

nginx socket fastcgi_params

December 16, 2016 05:39AM
Всем привет.
Если подключаться к nginx'y через unix-socket то не передаются fastcgi-параметры. Как минимум эти:

fastcgi_param REMOTE_USER $remote_user;
fastcgi_param GEOIP_COUNTRY_CODE $geoip_city_country_code;
fastcgi_param GEOIP_COUNTRY_NAME $geoip_city_country_name;
fastcgi_param GEOIP_REGION $geoip_region;
fastcgi_param GEOIP_CITY $geoip_city;

Проверяю вот так:

curl http://domain.dev/test.php
curl --unix-socket /var/run/nginx.sock http://domain.dev/test.php

Это нормально? Если нет, то как можно исправить?
Спасибо.
Subject Author Posted

nginx socket fastcgi_params

skeletor December 16, 2016 05:39AM

Re: nginx socket fastcgi_params

Иван December 16, 2016 06:32AM

Re: nginx socket fastcgi_params

skeletor December 16, 2016 06:54AM

Re: nginx socket fastcgi_params

Maxim Dounin December 16, 2016 08:54AM

Re: nginx socket fastcgi_params

skeletor December 16, 2016 08:56AM

Re: nginx socket fastcgi_params

S.A.N December 16, 2016 09:10AM

Re: nginx socket fastcgi_params

skeletor December 19, 2016 03:37AM

Re: nginx socket fastcgi_params

Валентин Бартенев December 19, 2016 05:20AM

Re: nginx socket fastcgi_params

skeletor December 19, 2016 05:22AM

Re: nginx socket fastcgi_params

Валентин Бартенев December 19, 2016 06:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready