enabling httpd v2.4's mod_proxy_fcgi + "ProxyPassMatch" breaks 'Index' display ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux