annotate conf/scgi_params @ 4192:61e4af19df9f
Autoindex: escape '?' in file names.
For files with '?' in their names autoindex generated links with '?' not
escaped. This resulted in effectively truncated links as '?' indicates
query string start.
This is an updated version of the patch originally posted at [1]. It
introduces generic NGX_ESCAPE_URI_COMPONENT which escapes everything but
unreserved characters as per RFC 3986. This approach also renders unneeded
special colon processing (as colon is percent-encoded now), it's dropped
accordingly.
[1] http://nginx.org/pipermail/nginx-devel/2010-February/000112.html
Reported by Konstantin Leonov.
author |
Maxim Dounin <mdounin@mdounin.ru> |
date |
Tue, 11 Oct 2011 17:56:51 +0000 |
parents |
d656caa72ec9 |
children |
352a7b025f2e |
rev |
line source |
3637
|
1
|
|
2 scgi_param REQUEST_METHOD $request_method;
|
|
3 scgi_param REQUEST_URI $request_uri;
|
|
4 scgi_param QUERY_STRING $query_string;
|
|
5 scgi_param CONTENT_TYPE $content_type;
|
|
6
|
|
7 scgi_param DOCUMENT_URI $document_uri;
|
|
8 scgi_param DOCUMENT_ROOT $document_root;
|
|
9 scgi_param SCGI 1;
|
|
10 scgi_param SERVER_PROTOCOL $server_protocol;
|
|
11
|
|
12 scgi_param REMOTE_ADDR $remote_addr;
|
|
13 scgi_param REMOTE_PORT $remote_port;
|
|
14 scgi_param SERVER_PORT $server_port;
|
|
15 scgi_param SERVER_NAME $server_name;
|