Quote:
Originally posted by notolerance
I am trying to setup apache-ssl to allow the domains I host to have a secure webpage. I have made a cert for testing with openssl and installed apache-ssl.
I read thru all the docs on how to configure the server but I can’t get the name resolution to work. For example I have a domain that resolves http://www.abc123.com but if I try to go to https://www.abc123.com it always goes to the placeholder page no mater how I have the /etc/apache-ssl/httpd.conf configured.
This is on a Debian sarge box.
Can some one lead me in the right direction on how to get this to work with at least one site so that I can start populating them to others?
THX
|
You are trying to use https which does not work with name based virtual hosting. You have to use IP based virtual hosting.
http://httpd.apache.org/docs/vhosts/
Basically in your conf file, use
(comment out NameVirtualHost *)
Listen xx.xx.xx.xx:443 (If multiple IP address or just use 443 is single IP)
<VirtualHost xx.xx.xx.xx:443>
ServerName
www.abc123.com
DocumentRoot /path/to/docroot
</VirtualHost>
Certificate should be issued to
www.abc123.com
After starting the server, you can test it with a browser or an openssl client i.e
openssl s_client -connect
www.abc123.com:443
HTH