Hello,
I am running Fedora 2 and i have multiple domains hosted on the server. Everything works great. A few days ago I decided to move over a SSL cert for one of my domains and installed it....everything works fine for that domain via https...i purchased another cert for another domain on the machine and installed it but it keeps on pulling up the 1st cert and giving me a warning...I am hosting these sites on a server at home behind a linksys router...I only have 1 ded/public IP that my ISP gave me and its configured at the router level and my router is set to port forwarding to the IP of my machine for all the different services (HTTP, FTP,DNS,POP3..etc...) the IP of my machine is 192.168.1.125. below is a portion of my httpd.conf file:
<VirtualHost 192.168.1.125:80>
ServerAdmin
contact@website1.com
DocumentRoot /home/website1.com/www
ServerName
www.website1.com
ServerAlias website1.com *.website1.com
ScriptAlias /cgi-bin/ "/home/website1.com/www/cgi-bin/"
AddHandler cgi-script .cgi .pl
</VirtualHost>
<VirtualHost 192.168.1.125:80>
ServerAdmin
contact@website2.com
DocumentRoot /home/website2.com/www
ServerName
www.website2.com
ServerAlias website2.com *.website2.com
ScriptAlias /cgi-bin/ "/home/website2.com/www/cgi-bin/"
AddHandler cgi-script .cgi .pl
</VirtualHost>
<VirtualHost 192.168.1.125:443>
ServerName
www.website1.com
DocumentRoot /home/website1.com/www
SSLEngine on
SSLCertificateFile /etc/httpd/conf/www_website1.com.crt
SSLCertificateKeyFile /etc/httpd/conf/website2.com.key
</VirtualHost>
<VirtualHost 192.168.1.125:443>
ServerName
www.website2.com
DocumentRoot /home/website2.com/www
SSLEngine on
SSLCertificateFile /etc/httpd/conf/www_website2.com.crt
SSLCertificateKeyFile /etc/httpd/conf/website2.com.key
</VirtualHost>
website1 is the site that works with SSL.... website2 is the site that does not work.
Im guessing website1 works via SSL because its before website2(SSL)...
is there anyway to get both website1 and 2 to work the way i have it setup...these certs are not IP based...but i think the way i have httpd.conf configured it cant get both to work.
I tried adding 192.168.1.126 address to my NIC (like an alias) and changing the IP in VirtualHost to it but that didnt work...was I in the right direction? or it cannot be done at all?
How about having mulitple httpd.conf files?
To sum it up...
I have 1 public IP configured at my linksys router and my servers local ip is 192.168.1.125 i would like to have multiple domains that have SSL..
thanks
any ideas?
Lenny