Проблема с php.

Igor Sysoev is at rambler-co.ru
Tue Aug 5 17:36:17 MSD 2008


On Tue, Aug 05, 2008 at 04:26:18PM +0300, maxhl at hitline.net.ua wrote:

> Вечер добрый.
> Итак имеем:
> __________________________________________________________
>    location ~ .php$ {
>                        fastcgi_pass unix:/mnt/md0/php-fcgi.sock;
>                        include  /usr/local/nginx/conf/phpcgi.conf;
>                        fastcgi_param SCRIPT_FILENAME 
> /home/htdocs$fastcgi_script_name;
>                }
> __________________________________________________________
> #phpcgi.conf
> fastcgi_pass_request_body off;
> client_body_in_file_only clean;
> fastcgi_param  REQUEST_BODY_FILE  $request_body_file;
> 
> fastcgi_connect_timeout 30;
> fastcgi_send_timeout 600;
> fastcgi_read_timeout 600;
> fastcgi_buffer_size 32k;
> fastcgi_buffers 4 32k;
> fastcgi_busy_buffers_size 32k;
> fastcgi_temp_file_write_size 32k;
> fastcgi_intercept_errors on;
> 
> #fastcgi_header_buffer_size 32k;
> fastcgi_temp_path /mnt/md0;
> #fastcgi_next_upstream error timeout invalid_header http_500 http_404;
> #fastcgi_next_upstream error timeout;
> #fastcgi_x_powered_by off; # default on
> #fastcgi_redirect_errors on;
> fastcgi_param  QUERY_STRING    $query_string;
> fastcgi_param  CONTENT_TYPE    $content_type;
> fastcgi_param  CONTENT_LENGTH  $content_length;
> fastcgi_param  REQUEST_URI     $request_uri;
> fastcgi_param  REQUEST_METHOD  $request_method;
> 
> fastcgi_param GATEWAY_INTERFACE CGI/1.1;
> fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
> 
> fastcgi_param  REMOTE_ADDR        $remote_addr;
> fastcgi_param  REMOTE_PORT        $remote_port;
> fastcgi_param  SERVER_ADDR        $server_addr;
> fastcgi_param  SERVER_PORT        $server_port;
> fastcgi_param  SERVER_NAME        $server_addr;#$server_name;
> fastcgi_param  SCRIPT_NAME        $request_uri;
> 
> 
> fastcgi_param   REDIRECT_STATUS 200;
> #       access_log /home/logs/access_log main;
> #       error_log /home/logs/error_log warn;
> #proxy_set_header Host $host;
> #proxy_set_header X-Real-IP $remote_addr;
> fastcgi_index  index.php;
> 
> 
> client_body_temp_path /mnt/md0;
> fastcgi_param   DOCUMENT_ROOT   $document_root;
> 
> __________________________________________________________
> Проблема аключается в том что среди переменных окружения непереаются:
> 
> _REQUEST["PHPSESSID"]
> _COOKIE["PHPSESSID"]
> _SERVER["HTTP_COOKIE"]
> _SERVER["HTTP_COOKIE2"]
> 
> А без них нерабатают некоторые готовые приложения ... и ставить из за этого 
> индейца неочется ...

Откуда PHP берёт PHPSESSID, я не знаю, но HTTP_COOKIE и HTTP_COOKIE2 должны
передаваться как заголовки.


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list