can't convince myself of anything with ProxyPassMatch, and can't figure
out how to adequately log.
switching to rewrite.
my vhost config now contains,
DirectoryIndex index.html
#ProxyErrorOverride on
RewriteEngine On
LogLevel info rewrite:trace5
#ProxyPassMatch ^/test/(.*\.php(/.*)?)$
fcgi://127.0.0.1:9000/srv/www/test/$1
RewriteRule ^/test(/.+\.(php)$)
fcgi://127.0.0.1:9000/srv/www/test/$1 [P]
@
http://myhost.com/test/
instead of a dir listing of the dir in browser, I get
The requested URL was not found on this server. The link on the
">referring page seems to be wrong or outdated.
Please inform the author of ">that page about the error. If you
entered the URL manually please check your spelling
and try again.
and (trimmed) error log contains,
==> /var/log/apache2/testhost.error_log <==
... [rewrite:trace2] .../initial] init rewrite engine with
requested uri /test/
... [rewrite:trace3] .../initial] applying pattern
'^/test(/.+\\.(php)$)' to uri '/test/'
... [rewrite:trace1] .../initial] pass through /test/
... [rewrite:trace2] .../subreq] init rewrite engine with
requested uri /test/index.php
... [rewrite:trace3] .../subreq] applying pattern
'^/test(/.+\\.(php)$)' to uri '/test/index.php'
... [rewrite:trace2] .../subreq] rewrite '/test/index.php' ->
'fcgi://127.0.0.1:9000/srv/www/test//index.php'
... [rewrite:trace2] .../subreq] forcing proxy-throughput with
fcgi://127.0.0.1:9000/srv/www/test//index.php
... [rewrite:trace1] .../subreq] go-ahead with proxy request
proxy:fcgi://127.0.0.1:9000/srv/www/test//index.php [OK]
... [proxy_fcgi:error] ... AH01071: Got error 'Primary script
unknown\n'
... [rewrite:trace2] .../initial/redir#1] init rewrite engine
with requested uri /error/HTTP_NOT_FOUND.html.var
... [rewrite:trace3] .../initial/redir#1] applying pattern
'^/test(/.+\\.(php)$)' to uri '/error/HTTP_NOT_FOUND.html.var'
... [rewrite:trace1] .../initial/redir#1] pass through
/error/HTTP_NOT_FOUND.html.var
it appears that the rewrite, if not the ProxyPassMatch as well, adds the
'index.php' even if it's not requested/matched. and, as it doesn't
exist, fails.
otoh, with same config and,
cat test.php
xxxxx
@
http://myhost.com/test/test.php
in browser,
xxxxx
is displayed correctly, and (trimmed) error log contains,
==> /var/log/apache2/testhost.error_log <==
... [rewrite:trace2] .../initial] init rewrite engine with requested uri
/test/test.php
... [rewrite:trace3] .../initial] applying pattern
'^/test(/.+\\.(php)$)' to uri '/test/test.php'
... [rewrite:trace2] .../initial] rewrite '/test/test.php' ->
'fcgi://127.0.0.1:9000/srv/www/test//test.php'
... [rewrite:trace2] .../initial] forcing proxy-throughput with
fcgi://127.0.0.1:9000/srv/www/test//test.php
... [rewrite:trace1] .../initial] go-ahead with proxy request
proxy:fcgi://127.0.0.1:9000/srv/www/test//test.php [OK]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]