Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fastcgi+404+теряется GET
Здравствуйте.
Конфиг 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)
Attachment:
pgpeaQVZ5m5D8.pgp
Description: PGP signature
|