Re: Re: How to customize error responses (while using mod_rewrite)?

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

 



On Mon, May 15, 2017 at 12:32 PM, Jens Schleusener
<Jens.Schleusener@xxxxxxxxxxx> wrote:
> Ok, in that case one could use the ErrorDocument directive (it works for me
> principally) but how can one can achieve that that directive is not used
> globally but only specific for the above case?
>
> The idea to set in the above RewriteRule additionally an environment
> variable for e.g. via a "E=tlsv10:1" flag and using
>
>   <If "env('tlsv10') -eq 1">
>     ErrorDocument 412 /https_tlsv10.html
>   </If>
>
> seems not to work, the Apache httpd outputs the "412" standard error
> message.

Re: the If misfiring, its because <if is evaluated shortly before
RewriteRule. You can check SSL envvars directly, or use setenvif
instead of RewiteRule to set the envvar.

But Is it much better than a redirect or rewrite to some document that
describes the problem but has a 200 status code?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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