httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Hidalgo <>
Subject Weird mozilla,lynx,IE + apache + php problem
Date Thu, 06 Dec 2001 16:22:32 GMT

Hi all,

Ive had a strange and weird problem that i actually solved now but would
like youre comments on.

Problem with php source showing(And yes i have a working php install ;).

Apache 1.3.20 and php 4.x

If you have a swap file like "", you can via
mozilla/lynx(havent tried opera) see the php source by writing

With IE 6 i get the correct output.

Now i have setup a "files" directiv in httpd.conf so you can`t access
the swap files, the swap files should not exist in this area but there are
probably alot of people just like me that currently have not errased them
or setup restrictions.

I have confirmed that a Mandrake 8.1 with apache 1.3.22 dosent have the
problem, so my question is have any of you heard about this bug(Or if i
missed anything in the config).

You can actually see in the apache respond that it send different answers
for mozilla and IE.

Here are the http requests:


GET /tha_man HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/, application/,
application/msword, */*
Accept-Language: sv
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Connection: Keep-Alive

HTTP/1.1 200 OK
Date: Thu, 06 Dec 2001 13:17:51 GMT
Server: Apache/1.3.20 (Unix)
Content-Location: tha_man.php
Vary: negotiate,accept
TCN: choice
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html


GET /tha_man HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5)
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9,
image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css,
Accept-Language: en-us
Accept-Encoding: gzip, deflate, compress;q=0.9
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Connection: keep-alive

HTTP/1.1 200 OK
Date: Thu, 06 Dec 2001 13:17:58 GMT
Server: Apache/1.3.20 (Unix)
Content-Location: tha_man.php~
Vary: negotiate,accept
TCN: choice
Last-Modified: Wed, 07 Nov 2001 09:13:06 GMT
ETag: "1f685-44b-3be8fb22;3c0e1919"
Accept-Ranges: bytes
Content-Length: 1099
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

Rodrigo Hidalgo C.

Any intelligent fool can make things bigger, more complex, and more
violent. It takes a touch of genius -- and a lot of courage -- to move in
the opposite direction.

Albert Einstein (1879-1955)

 /             /
_---_    _---_/

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message