LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   SSL Configuration on an Apache VirtualHost (https://www.linuxquestions.org/questions/%2Absd-17/ssl-configuration-on-an-apache-virtualhost-26675/)

sancho5 07-27-2002 08:19 PM

SSL Configuration on an Apache VirtualHost
 
Greetz,

I have my web server set up with several virtual hosts as well as the default web site. I'd like to make it possible so that when users go to a certain virtual address that the site is thrown up "SSLified". I don't want the other virtual hosts secured nor the default web site.

I created my certificate and signed it myself and started Apache with the -DSSL switch so that it is using it.

What needs to be put into the virtual host configuration to support this, and if users hit the address on port 80, will it automatically start an SSL session and go over :443?

TIA

rverlander 07-27-2002 08:25 PM

Well you need an IP addy for each virtualhost for a start.

sancho5 07-27-2002 08:45 PM

Why?? I'm doing name based virtual hosting just fine on one IP, multiple DNS names.

rverlander 07-27-2002 09:00 PM

No, SSL needs 1 IP per virtualhost

sancho5 07-28-2002 09:15 PM

You're kidding. And in the event that it's a publicly addressed server, you deal with throwing in a new IP for each secured virtual host? All right.

Given then that I have only one virtual host I want to secure, and I have port 80 on my router NAT'ted in through to this server's port 80, feasibly I can NAT port 443 on the router into an alias I set up on this host on port 443 and still be OK, no?

Thanks for the help.

rverlander 07-29-2002 01:17 AM

Well if its only 1 virtual host you don't need another IP but if you want more than 1 you need 1 IP/virtualhost.

sancho5 07-29-2002 08:09 AM

OK. Thanks for the help!


All times are GMT -5. The time now is 07:53 PM.