httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jussi Vuokko <jussi.vuo...@smilehouse.com>
Subject Re: HTTP-headers in ErrorDocuments
Date Tue, 02 Jul 2002 08:53:22 GMT
On Mon, 1 Jul 2002, Rodent of Unusual Size wrote:

> > Actually the question is: Why doesn't the Header directive apply if I'm
> > not using the ErrorDocument directive. :-)

> Okey, so you're using Header and not seeing it in the response header
> for a normal document.

  Um, no. As you can see:

--- clip -- clip ---

GET / HTTP/1.1
Host: barfoo

HTTP/1.1 200 OK
Date: Tue, 02 Jul 2002 08:19:30 GMT
Server: Apache/1.3.24 (Unix) Debian GNU/Linux mod_ssl/2.8.7 OpenSSL/0.9.6c ApacheJServ/1.1.2
P3P: policyref="http://barfoo/w3c/p3policy.xml", CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo
IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
Last-Modified: Thu, 07 Feb 2002 18:55:41 GMT
ETag: "57cb-100e-3c62cdad"
Accept-Ranges: bytes
Content-Length: 4110
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
Found.
</html>

GET /asdkjl HTTP/1.1
Host: barfoo

HTTP/1.1 404 Not Found
Date: Tue, 02 Jul 2002 08:19:48 GMT
Server: Apache/1.3.24 (Unix) Debian GNU/Linux mod_ssl/2.8.7 OpenSSL/0.9.6c ApacheJServ/1.1.2
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

114
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /asdkjl was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.24 Server at barfoo Port 80</ADDRESS>
</BODY></HTML>

0

--- clip -- clip ---

  First one - the normal document - does contain the P3P header. Second 
one - the 404 error document - doesn't. And that's the problem.

  -jussi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message