LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

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


Hello:

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
cli_man
Member
 
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 63.174.233.112

Code:
<VirtualHost 63.174.233.112:443>
DocumentRoot /home/web/sites/domain_dir
ServerName secure.yourdomain.com
ServerAlias yourdomain.com
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/secure.yourdomain.com.crt
SSLCertificateKeyFile /usr/local/ssl/private/secure.yourdomain.com.key
</VirtualHost>
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:54 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