FAQ

Page Discussion History

Difference between revisions of "DocRequests"

(auth,php corrected so have removed correction request!)
 
(fastcgi_split_path_info example assumed typo)
 
Line 26: Line 26:
 
But where is <code>$http_host</code> explained?
 
But where is <code>$http_host</code> explained?
 
<br/>-- <font style="text-shadow:lightgrey 0.3em 0.3em 0.15em;">[[User:Dandv|<font color="green">Dandv</font>]]<sup>([[User talk:Dandv|<font color="maroon">talk</font>]]&#124;[[Special:Contributions/Dandv|<font color="maroon">contribs</font>]])</sup></font> 10:10, 10 July 2011 (MSD)
 
<br/>-- <font style="text-shadow:lightgrey 0.3em 0.3em 0.15em;">[[User:Dandv|<font color="green">Dandv</font>]]<sup>([[User talk:Dandv|<font color="maroon">talk</font>]]&#124;[[Special:Contributions/Dandv|<font color="maroon">contribs</font>]])</sup></font> 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.<br />
 +
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;

Latest revision as of 00:42, 4 October 2012

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;