From:             
Operating system: FreeBSD
PHP version:      5.3.6
Package:          FPM related
Bug Type:         Bug
Bug description:FPM ping and status_path return HTTP 404 even though I get the 
correct output

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

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54499&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54499&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54499&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54499&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54499&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54499&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54499&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54499&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54499&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54499&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54499&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54499&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54499&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54499&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54499&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54499&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54499&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54499&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54499&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54499&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54499&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54499&r=mysqlcfg

Reply via email to