LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Running multiple SSL websites on one server (https://www.linuxquestions.org/questions/linux-networking-3/running-multiple-ssl-websites-on-one-server-199467/)

tictocdoc 06-30-2004 09:07 AM

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????

cli_man 07-07-2004 03:26 PM

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>



All times are GMT -5. The time now is 08:01 AM.