Bug #74181 [NEW]: Different configurations for serving www.php.net?
| From: | james at jameswestby dot net | Date: | Tue, 28 Feb 2017 14:47:36 +0000 |
| Subject: | Bug #74181 [NEW]: Different configurations for serving www.php.net? | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25631@lists.php.net to get a copy of this message | ||
From: james at jameswestby dot net
Operating system: Linux
PHP version: Irrelevant
Package: Website problem
Bug Type: Bug
Bug description:Different configurations for serving www.php.net?
Description:
------------
Hi,
We have a bot that watches for new versions of php by scraping the
website occaisionally.
It sometimes reported that it couldn't find the latest release in the
page.
After debugging for a while I found that sometimes it was being
redirected to
/search.php by http://www.php.net`.
Testing lots of queries against www.php.net shows different
behaviours,
indicating perhaps a mix of servers for it, with different
configurations?
Test script:
---------------
$ curl -I http://www.php.net/
Expected result:
----------------
Same behaviour whichever backend server is reached.
Actual result:
--------------
Here are two consecutive responses I received with curl -I:
HTTP/1.1 200 OK
Date: Tue, 28 Feb 2017 14:43:00 GMT
Server: Apache
Last-Modified: Tue, 28 Feb 2017 13:30:11 GMT
Content-language: en
X-Frame-Options: SAMEORIGIN
Set-Cookie: COUNTRY=NA%2C86.31.132.166; expires=Tue, 07-Mar-2017
14:43:00 GMT; path=/; domain=.php.net
Set-Cookie: LAST_NEWS=1488292980; expires=Wed, 28-Feb-2018 14:43:00 GMT;
path=/; domain=.php.net
Link: <http://php.net/index>; rel=shorturl
Connection: close
Content-Type: text/html; charset=utf-8
HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.2
Date: Tue, 28 Feb 2017 14:43:01 GMT
Content-Type: text/html
Content-Length: 184
Connection: keep-alive
Location: http://php.net/
You can see that the nginx is behaving differently to the apache.
The bot was seeing a redirect to /search.php sometimes, but I haven't
seen that with curl yet.
--
Edit bug report at https://bugs.php.net/bug.php?id=74181&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74181&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74181&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74181&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74181&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74181&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74181&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74181&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74181&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74181&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74181&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74181&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74181&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74181&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74181&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74181&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74181&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74181&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74181&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74181&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74181&r=mysqlcfg