
02-02-2011, 03:55 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
The content-type returned for both http://64.202.244.25/index.php and http://64.202.244.25/Wdc/phpinfo.php is application/octet-stream. That's why browser tries to download.
Quote:
$ curl -I http://64.202.244.25/index.php
HTTP/1.1 200 OK
Date: Wed, 02 Feb 2011 23:52:15 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Vary: User-Agent
Cache-Control: max-age=2592000
Expires: Fri, 04 Mar 2011 23:52:15 GMT
ETag: "a11-4b602806-be8b24"
Last-Modified: Wed, 27 Jan 2010 11:48:22 GMT
Content-Type: application/octet-stream
Content-Length: 2577
$ curl -I http://64.202.244.25/Wdc/phpinfo.php
HTTP/1.1 200 OK
Date: Thu, 03 Feb 2011 00:22:01 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Vary: User-Agent
Cache-Control: max-age=2592000
Expires: Sat, 05 Mar 2011 00:22:01 GMT
ETag: "1e-4b743548-be8b05"
Last-Modified: Thu, 11 Feb 2010 16:50:16 GMT
Content-Type: application/octet-stream
Content-Length: 30
|
However, index.html returns 'text/html'
Quote:
$ curl -I http://64.202.244.25/index.html
HTTP/1.1 200 OK
Date: Wed, 02 Feb 2011 23:53:46 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Vary: User-Agent
Cache-Control: max-age=2592000
Expires: Fri, 04 Mar 2011 23:53:46 GMT
ETag: "14-4cd8261c-be8b25"
Last-Modified: Mon, 08 Nov 2010 16:32:28 GMT
Content-Type: text/html
Content-Length: 20
|
It is likely your application on that server has something (like below) override php type in .htaccess at docroot.
Quote:
|
AddType application/octect-stream php
|
Last edited by webizen; 02-02-2011 at 04:22 PM..
Reason: response from wdc/phpinfo.php added
|