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 |
Well you need an IP addy for each virtualhost for a start.
|
Why?? I'm doing name based virtual hosting just fine on one IP, multiple DNS names.
|
No, SSL needs 1 IP per virtualhost
|
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. |
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.
|
OK. Thanks for the help!
|
All times are GMT -5. The time now is 07:53 PM. |