I have some common configuration for both port 443 and port 80. But I want for port 443 some specific configuration (like turning SSLEngine On
). How can I get this working?
I have some common configuration for both port 443 and port 80. But I want for port 443 some specific configuration (like turning SSLEngine On
). How can I get this working?
As Kerrek already mentioned, you can easily setup two VirtualHost directives for each, then put an Include directive in each pointing to a file with the common elements.
If the server is only hosting a single site, you can put the common elements in the global configuration and setup a virtual host for the https site with the additional directives for it.