Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-30-2004, 09:07 AM   #1
LQ Newbie
Registered: Sep 2003
Location: Houston,TX
Distribution: RedHat/SuSe/Mandrake
Posts: 20

Rep: Reputation: 0
Running multiple SSL websites on one server


I am trying to set up several SSL e-commerce sites on one Fedora server with Apache 2. I can get to the HTTP sites fine, but the HTTPS sites give a "page not found error". I have the virtual host entries set up to use the SSL cert that I self-generated/signed and to listen on port 443. If I type in my HTTPS URL with ":443" added to the end I get the default Apache "Welcome" screen instead of the actual HTTPS site. I understand that SSL requires a unique IP/Port pair for each site. My question is that I have 1 static ip address from my isp. I know that I can create additional virtual NICs in my Fedora box. Is there any way to accomplish this so that each SSL website can have its own IP/Port pair? I have a Linksys router also. I can generate and sign SSL certs for each e-commerce site. If someone has already gotten this to work, could you please tell me how you did it????

Last edited by tictocdoc; 06-30-2004 at 09:08 AM.
Old 07-07-2004, 03:26 PM   #2
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Here is the config for one of my servers, this is for apache 1.3.31 so it may be a little different you also need to have a line that has "Listen 443" in the config. To have more than one site just list the same ip address again and change the ServerName and ServerAlias. Also you will have to add a line NameVirtualHost

DocumentRoot /home/web/sites/domain_dir
ScriptAlias /cgi-bin/ /home/web/sites/domain_dir/cgi-bin/
CustomLog /home/web/logs/2004/07/yourdomain.log combined
SSLEngine on
SSLCertificateFile /usr/local/ssl/certs/
SSLCertificateKeyFile /usr/local/ssl/private/


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
Apache - running multiple websites on one host xtra Linux - General 5 06-30-2010 04:51 AM
serving multiple domain websites on one server? gsgleason Linux - Software 1 06-03-2005 10:50 AM
multiple ssl certs, single apache server? hank43 Linux - Software 0 01-26-2005 04:56 PM
How to configure multiple websites on one PC? <Ol>Origy Linux - Networking 8 08-16-2004 07:16 AM
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 > Forums > Linux Forums > Linux - Networking

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

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