Re: Detecting if https is used from within a .conf file

"Michael Pacey" <[email protected]>
Newsgroups gmane.comp.apache.mod-ssl.user
Message-ID <[email protected]>
Toomas Aas said:
<snip>
> I was thinking of putting this large block of directives into separate
> file and Include it in both vhost sections, to tidy up my main config
> file. But in order to do that, I would need to define some logic in this
> file for those cases where http and https need to be handled separately.
> I was certain that such possibility exists, but I'm starting to have
> some doubts now. Any advice?
>
> Using Apache 2.0.53.


I don't think you can put runtime logic into the configuration but why not
just  put the common stuff in the included file and the protocol specific
stuff in the virtual host sections?

--
Michael Pacey

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [email protected]
Automated List Manager                            [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.