Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- correct setup of apache to handle multiple domains with & without ssl


RonPK - 12:53 pm on Feb 27, 2012 (gmt 0)


For what it's worth, my setup for one SSL site and numerous non-SSL sites is like this:

NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.example.com
...
</VirtualHost>
<VirtualHost *:80>
ServerName sub1.example.com
...
</VirtualHost>

NameVirtualHost 1.2.3.4:443
<VirtualHost 1.2.3.4:443>
ServerName ssl.example.com
...
</VirtualHost>


It works, please don't ask why ;)

Why would you specify an IP address for the SSL sites? Doesn't the certificate require a domain name?


Thread source:: http://www.webmasterworld.com/apache/4421907.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com