FAQ

Page Discussion History

DocRequests

Revision as of 00:42, 4 October 2012 by Orrin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contents

Documentation Requests

Find a hole in the documentation or a section that isn't clear enough? Please add it to this page so someone can address it.

proxy_pass

The documentation here http://wiki.codemongers.com/NginxHttpProxyModule#proxy_pass is not clear to me. The syntax says:

proxy_pass URL

but the examples show a second parameter. This leads to a syntax error. I am a bit shy to edit a reference page mayself, so I would like others to have a look into this.

I do not see any such example. Can you please paste one here? - Cliff

Meaning of special characters

Is there such a page? For example, what does the caret character mean in rewrite ^ http://example.com/ permanent;? "Beginning of string", as it means in regular expressions?
-- Dandv(talk|contribs) 22:58, 09 July 2011 (PDT)

The variable $http_host should be explained

See http://wiki.nginx.org/HttpCoreModule#.24host:
"This variable may have a different value from $http_host when the Host input header is absent or has an empty value."

But where is $http_host explained?
-- Dandv(talk|contribs) 10:10, 10 July 2011 (MSD)


fastcgi_split_path_info example typo

I believe the PATH_TRANSLATED value in this example from the fastcgi_split_path_info example is incorrect.
From http://wiki.nginx.org/HttpFastcgiModule#fastcgi_split_path_info:

 location ~ ^.+\.php {
   (...)
   fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
   fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
   fastcgi_param PATH_INFO $fastcgi_path_info;
   fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
   (...)
 }
 fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

should be

 fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;