Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The "PHP-FPM" page has been changed by thumbs:
https://wiki.apache.org/httpd/PHP-FPM?action=diff&rev1=6&rev2=7

Comment:
Added another directory index value to allow serving content from any request 
uri.

  Edit the configuration for a vhost of your choice, and add the following line 
to it:
  
   `ProxyPassMatch ^/(.*\.php(/.*)?)$ 
fcgi://127.0.0.1:9000/path/to/your/documentroot/$1`<<BR>>
-  `DirectoryIndex /index.php`
+  `DirectoryIndex /index.php index.php`
  
  Look confusing ? Let's run through it:
  
@@ -99, +99 @@

   php-fpm just interprets the php files passed to it; it is not a web server, 
nor does it understand your web servers' namespace, virtualhost layout, or 
aliases.<<BR>>
   IMPORTANT! __Read the above again__
   $1:: expands to the entire request-URI from the original request, minus the 
leading slash (because we already added that above.)<<BR>>
-  DirectoryIndex /index.php:: a request for / will need to be mapped to a 
resource on the fcgi backend. Failure to address this may cause a blank 
response, commonly known as a WSOD (White Screen of Death), especially if only 
a request URI containing the php extension is proxied, such as this example. 
The processing chain will first map a request for / to /index.php, then proxy 
to the PHP-FPM backend correctly.
+  DirectoryIndex /index.php index.php:: a request for / will need to be mapped 
to a resource on the fcgi backend. Failure to address this may cause a blank 
response, commonly known as a WSOD (White Screen of Death), especially if only 
a request URI containing the php extension is proxied, such as this example. 
The processing chain will first map a request for / to /index.php or any other 
index.php file relative to the current request uri, then proxy to the PHP-FPM 
backend correctly.
  
  === unix domain socket (UDS) approach ===
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org

Reply via email to