Re: [users@httpd] Change HTTP status code in Custom Errors - next try

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Nick and Joshua!

Nick Kew wrote:
On Sunday 11 June 2006 21:14, Karsten Konrad wrote:

    <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"

Status is a CGI header, not an HTTP header.  Headers set by mod_headers
don't go through CGI processing.

It would be relatively straightforward to patch the code to make that work.
But even simpler just to use CGI.  You're not expecting these errors to
account for *that* much of your traffic, are you?

No, I don't expect that many error messages. Basically, I hoped that I could keep the configuration simpler by using Apache only :-)

Thank you both very much für the (background) information!
I realized the errormessages in php now.

Best regards,
Karsten Konrad


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux