Welcome! Log In Create A New Profile

Advanced

DirectoryIndex index.php w/ php-fpm & mod_proxy_fcgi

Posted by Gottfried Haider 
Gottfried Haider
DirectoryIndex index.php w/ php-fpm & mod_proxy_fcgi
January 24, 2014 04:50PM
Hello,

I am currently setting up php-fpm with mod_proxy_fcgi to replace a mod_php
configuration, and I can't seem to get DirectoryIndex to work with php
files, since this also routes requests for directories without am index.php
file (where one would e.g. be served a directory listing) through the proxy
to php-fpm, which then outputs "File not found.".

There seem to be somewhat a way to avoid this, using a RewriteRule rather
than ProxyPassMatch, but I hope to avoid going down this route (especially
since the Apache documentation recommends against doing so for performance
reasons, which is my motivation for this endeavor in the first place).

Any other ideas? Is this something that is being worked on?

Relevant threads:
http://serverfault.com/questions/553899/forwarding-php-requests-via-proxypassmatch-as-a-handler-or-only-when-file-exist
http://marc.info/?l=apache-httpd-users&m=134765077523168&w=1
https://groups.google.com/forum/#!topic/highload-php-en/qe2R7T939JM

Thanks!
Gottfried

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready