|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-04-09 12:14 UTC] danger at freebsd dot org
Description: ------------ I have set up status_path and ping features and I verified them to give a correct output. However the php-fpm.conf states following: "; This directive may be used to customize the response of a ping request. The ; response is formatted as text/plain with a 200 response code. ; Default Value: pong" Well that is my expectation too, as I would like to use the ping feature together with some health checking, however although it responds with the correct body set in ping.response (set to 1), the HTTP status header is set to 404: danger@[danger-mbp ~]> curl -I http://web1/php-ping HTTP/1.1 404 Not Found Content-type: text/html Date: Sat, 09 Apr 2011 10:08:28 GMT Server: Lighttpd 1.4.x danger@[danger-mbp ~]> curl http://web1/php-ping 1 For this reason my health checking doesn't work correctly as it expects 200 OK. As you can see, I am using lighttpd, with the configuration from the last post from http://redmine.lighttpd.net/boards/2/topics/3923. Expected result: ---------------- HTTP/1.1 200 OK Actual result: -------------- HTTP/1.1 404 Not Found PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
I'm actually not using tcp between fpm and lighttpd in my setup, here's my config: $HTTP["host"] =~ "^web1$" { fastcgi.server = ( "/php-" => ( ( "socket" => "/tmp/php.sock", "check-local" => "disable", # "fix-root-scriptname" => "enable", # "broken-scriptfilename" => "enable", ) ) ) } I also tried with combinations of "fix-root-scriptname" and "broken-scriptfilename" enabled.