I have an Apache server running two sub domains, one of them is configured with SSL.
To get the other sub domain to work, we of course had to set up a new IP (because the other one was configured with SSL).
However, we cannot reach our new sub domain and we cannot figure out why. The Apache configuration should be OK.
Here's a snippet of our virtual hosts directives:
# ssl domain
<VirtualHost 1.2.3.4.5:80>
ServerName sub1.example.com
DocumentRoot /var/www/sub1
<Directory "/var/www/sub1">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# "regular" domain
<VirtualHost 2.3.4.5.6:80>
DocumentRoot /var/www/sub2
ServerName sub2.example.com
<Directory "/var/www/sub2">
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Requests to sub1.example.com are OK, but nothing happens when we try sub2.example.com.
The "default" config for Apache is set to:
Listen 80
ServerName sub1.example.com
We are running Apache/2.2.15 on CentOS 6.
*.example.com
, or if they use different port numbers, then they can share the same IP).