I have a question about named virtual hosts. I have the following
config (with IPs changed):
Aapche server IP 192.168.1.1
Named virtual host - host1.mydomain.com
Docroot = /usr/local/apache/htdocs-host1
Named virtual host - host2.mydomain.com
Docroot = /usr/local/apache/htdocs-host2
I want SSL enabled on the host1.mydomain.com but NOT on htdocs-host2.
I've setup what I thought was going to work and it does almost.
Normal non-SSL access works fine. Its the SSL part that is messed up.
If I access https://host2.mydomain.com, I get the index.html page for
host1.mydomain.com. This has to be related to how the VirtualHost
container is setup for host1.mydomain.com.
Can someone help me out? How do I prevent host2 from being
accessed by HTTPS completely, if possible ? Is there a named virtual
host configuration that allows some hosts to have both 80 and 443
access and other to only have 80 and maybe again other to only have
The following are the options that I think are important in the
# Virtual Host host1.mydomain.com
# DocumentRoot, ErrorLog, CustomLog, and all that should be taken
# from the already defined values from the httpd.conf - I think
# Virtual Host host2.mydomain.com
CustomLog /usr/local/apache/logs/host2-access_log combined
# General setup for the virtual host
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
#### And all that jazz