I run apache 2.4.3-dev with mod_proxy_fcgi + php-fpm.
My apache vhost config includes
DirectoryIndex index.php index.html
#ProxyPassMatch ^/(.*\.php(/.*)?)$
fcgi://127.0.0.1:9000/srv/www/testhost/$1
<Location "/" >
Require all granted
</Location>
<Directory "/srv/www/testhost/" >
AllowOverride NONE
Options +Indexes +FollowSymLinks +Includes +MultiViews
</Directory>
My root dir includes,
ls /src/www/testhost
test.html
test.php
With the config as above, if I visit
http://myhost.com/test.html
content displays OK, and
http://myhost.com/
displays the site/dir index in browser.
If I next enable the ProxyPassMatch,
- #ProxyPassMatch ^/(.*\.php(/.*)?)$
fcgi://127.0.0.1:9000/srv/www/testhost/$1
+ ProxyPassMatch ^/(.*\.php(/.*)?)$
fcgi://127.0.0.1:9000/srv/www/testhost/$1
both,
http://myhost.com/test.html
http://myhost.com/test.php
display content OK, but
http://myhost.com/
no longer displays the site/dir index. Instead, I get @ browser,
"File not found."
and @ error log,
==> /var/log/apache2/error_log <==
[Tue Jun 12 07:59:37.838246 2012] [proxy_fcgi:error] [pid
32255:tid 140226110965504] [client 127.0.0.1:45838] AH01071: Got
error 'Primary script unknown\n'
What's needed to get index display working with php proxying enabled?
Kat
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]