LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2004, 01:19 PM   #1
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Rep: Reputation: 15
install 2 or more SSL certs on same machine with 1 IP


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple ssl certs, single apache server? hank43 Linux - Software 0 01-26-2005 04:56 PM
Unix certs Linux certs and jobs bru Linux - Certification 1 11-18-2004 10:41 AM
Which certs are valuable? sandboy6184 Linux - Certification 2 11-15-2004 08:22 AM
What linux certs are there? walterbyrd Linux - Certification 1 05-07-2004 07:02 PM
Apache SSL - how to virtual host two or more secure websites on the same machine? bjoshi Linux - Networking 0 08-30-2001 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration