httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject [users@httpd] mod_proxy, php-fpm and DirectoryIndex
Date Thu, 01 Jan 1970 00:00:00 GMT

I would like to provide PHP via php-fpm and use proxypass for that, which relays any requests
for php files
to the listening FPM-Server, which then parses the PHP code, e.g.:

LoadModule proxy_fcgi_module
LoadModule proxy_handler_module .../

-> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://$1

Now the issue with this is pretty much severe, which makes that approach and the idea useless:

it CAN handle http://host/index.php and it CAN handle http://host/whatever.php
but it CAN NOT handle php files given from a directory index, e.g.

DirectoryIndex index.html index.htm index.php index.php3 index.php4

... so a request such as: http://host/ simply fails. This one would result with a given
index.php into being appended to the request, but the REGEX at ProxyPassMatch
just handles these matches, obviously before DirectoryIndex comes to power internally.

This way, sadly, PPM can not determine whether DirectoryIndex will find some php file
later, so one can not use PPM for this to combine it with FPM.


Any ideas how to solve that issue? Any hints would be appreciated, since this is for
shared hosting, I am having that requirement that DirectoryIndex has to be parsed
as well as .php-filenames appended to the query string.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message