fastcgi+404+теряется GET

Денис alfa at 1nsk.ru
Fri Jun 6 14:33:12 MSD 2008


Здравствуйте.

Конфиг nginx

server {
server_name domain.ru;
index index.php;
root /var/www/html;
error_page 404 =200 /MISSING_PAGE;
location / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_param  QUERY_STRING     $query_string;
fastcgi_param  REQUEST_METHOD   $request_method;
fastcgi_param  CONTENT_TYPE     $content_type;
fastcgi_param  CONTENT_LENGTH   $content_length;
fastcgi_param   PATH_TRANSLATED /var/www/html$fastcgi_script_name;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;
fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  CONTENT_LENGTH     $content_length;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;
fastcgi_intercept_errors on;
include fastcgi_params;
}
location  /MISSING_PAGE {
internal;
rewrite ^/(.*)$ / last;
break;
}
}

все заруливается в корневой, но для вирт директорий теряется GET
т.е. REQUEST_URI  например /dir1/dir2/?sddfsfd=dfgfh, но массив GET пустой :( для существующих файлов все норм.

--
Denis V. (ALFA-RIPE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 282 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080606/337c0815/attachment.pgp>


More information about the nginx-ru mailing list