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

[users@httpd] ProxyErrorOverride on with PHP-FPM


I'm trying to get rid of the message

[proxy_fcgi:error] ... AH01071: Got error 'Primary script unknown\n'

in error logs (LogLevel notice) when proxying to an php-fpm daemon and the requested php file doesn't exist.

php-fpm config in VirtualHost is

<FilesMatch "\.php$">
	SetHandler  "proxy:unix:/run/php-fpm/www.sock|fcgi://foobar/"

When I set "ProxyErrorOverride on" the error in browser changes from "File not found." to "Not Found

The requested URL /bla.php was not found on this server."

In error.log is still get the "Primary script unknown" message. Is there a way to suppress this (without fiddling with LogLevel)??


To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-users/msg02452.html on line 104
Call Stack
10.0006363528{main}( ).../msg02452.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-users/msg02452.html on line 104
Call Stack
10.0006363528{main}( ).../msg02452.html:0