Re: [users@httpd] specifying https-specific directives

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

 




Thanks. You mean mod_ssl's %{HTTPS} variable, right?

And how do I use it to drive conditional directives? Since %{HTTPS}
always exists, with a value "no" or "yes" (according to what you wrote),
I can't use it directly with the "Allow from env=..." form, because that
checks for the existence of the referred variable. I don't seem to be
able to use it in SetEnvIf either - it just doesn't provide the expected
result.

So what's the common practice to specify conditional directives based on
env. variables, or at least use the "Allow from env=..." form with an
always-existing variable?

thx
mortee

Boyle Owen wrote:
YOu can put a Directory block at server config level, ie, outside all
VHs. Then it applies globally. As regards making the directives
conditional on the protocol used, you could use mod_rewrite - it has
a built-in environment variable, %{HTTPS} that is "on" or "off"
depending on whether HTTPS was used.


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