LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 07-27-2002, 09:19 PM   #1
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Rep: Reputation: 30
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
 
Old 07-27-2002, 09:25 PM   #2
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Well you need an IP addy for each virtualhost for a start.
 
Old 07-27-2002, 09:45 PM   #3
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Original Poster
Rep: Reputation: 30
Why?? I'm doing name based virtual hosting just fine on one IP, multiple DNS names.
 
Old 07-27-2002, 10:00 PM   #4
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
No, SSL needs 1 IP per virtualhost
 
Old 07-28-2002, 10:15 PM   #5
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Original Poster
Rep: Reputation: 30
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.
 
Old 07-29-2002, 02:17 AM   #6
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
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.
 
Old 07-29-2002, 09:09 AM   #7
sancho5
Member
 
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327

Original Poster
Rep: Reputation: 30
OK. Thanks for the help!
 
  


Reply


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
debian sarge apache-ssl configuration notolerance Debian 0 01-10-2005 11:44 AM
SSL & NameBased VirtualHost ?? RHrulz Linux - Networking 1 12-12-2004 06:33 PM
Apache: Virtualhost configuration problem deepika Linux - Software 3 08-12-2003 11:13 AM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 07:15 PM
apache+ssl configuration spook Slackware 5 01-14-2003 08:13 PM


All times are GMT -5. The time now is 11:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration