httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k5...@postpro.net
Subject [users@httpd] enabling httpd v2.4's mod_proxy_fcgi + "ProxyPassMatch" breaks 'Index' display ?
Date Tue, 12 Jun 2012 15:06:23 GMT

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: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message