httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Change HTTP status code in Custom Errors - next try
Date Sun, 11 Jun 2006 22:05:10 GMT
On 6/11/06, Karsten Konrad <karsten.konrad@uni-graz.at> wrote:

> Thanks for the input! I had hoped, that I could avoid cgi/php stuff but
> I'll give it a try now.
>
> After my post yesterday I had an other, maybe stubid, idea and tried to
> change the Header with mod_headers like this:
>
>     <Location "/error/CUSTOM_SERVER_MAINTENANCE.html.var">
>       Header set STATUS "503 Service Unavailable"
>     </Location>
>
> The result is the following line in the HTTP Header "Status: 503 Service
> Unavailable"
> But the return code itself is still "HTTP/1.x 200 OK"

That's because Status is not a real HTTP response header.  It is a
special header used to communicate over the CGI between scripts and
the server.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message