Req #54499 [Asn->Csd]: FPM ping and status_path should handle HEAD request
| From: | fat@php.net | Date: | Sat, 02 Jul 2011 16:35:14 +0000 |
| Subject: | Req #54499 [Asn->Csd]: FPM ping and status_path should handle HEAD request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161497@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54499&edit=1
ID: 54499
Updated by: fat@php.net
Reported by: danger at freebsd dot org
Summary: FPM ping and status_path should handle HEAD request
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: FPM related
Operating System: FreeBSD
PHP Version: 5.3.6
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
fixed !
Previous Comments:
------------------------------------------------------------------------
[2011-07-02 12:34:39] fat@php.net
Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=312813
Log: - Implemented FR #54499 (FPM ping and status_path should handle HEAD request)
------------------------------------------------------------------------
[2011-04-09 15:54:32] fat@php.net
OK
so this is not a bug, this is a feature/change request. ping and status page
should returns 200OK on HEAD requests
------------------------------------------------------------------------
[2011-04-09 14:29:36] danger at freebsd dot org
OK, I know what is going on here. I just found that curl -I does a HEAD request, so `curl -I http://web1/php-(ping/status)' returns 404, but when I
use -i it works fine:
danger@[danger-mbp ~]> curl -i http://web1/php-ping
HTTP/1.1 200 OK
Content-Type: text/plain
Transfer-Encoding: chunked
Date: Sat, 09 Apr 2011 12:25:01 GMT
Server: Lighttpd 1.4.x
1
So it seems FPM works correct, although it might be nice to return with 200 OK for HEAD requests as
well. Sorry for inconvenience.
------------------------------------------------------------------------
[2011-04-09 14:04:55] danger at freebsd dot org
I guess it's pretty standard:
pm.status_path = /php-status
ping.path = /php-ping
ping.response = 1
------------------------------------------------------------------------
[2011-04-09 13:59:05] fat@php.net
OK FPM returns 404.
What is your FPM status and ping related configuration please ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=54499
--
Edit this bug report at https://bugs.php.net/bug.php?id=54499&edit=1