Re: [users@httpd] 503 response with mod_rewrite?

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

 



Is there a way to do this redirect on a conditional as a rewrite rule
allows, though? I.e., return a 503 if a certain file exists?


> Is there a way to return a custom document along with a 503 Network
> Unavailable response code using mod_rewrite rules? The documentation
> mentions the ability to return 3xx and 4xx, but not 5xx. If 5xx codes
> are unavailable - is there a specific reason why?

I don't think mod_rewrite can do it.  (I haven't tried it, but the
code seems to enforce 3xx on the R flag.)  But it is easier with
mod_alias anyway:

Redirect 503 /


--
-----------------------------------------------------
Evaldas Imbrasas
http://www.imbrasas.com

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