*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-27-2002, 08:19 PM
|
#1
|
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Rep:
|
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
|
|
|
|
07-27-2002, 08:25 PM
|
#2
|
|
Member
Registered: May 2002
Distribution: A few
Posts: 488
Rep:
|
Well you need an IP addy for each virtualhost for a start.
|
|
|
|
07-27-2002, 08:45 PM
|
#3
|
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Original Poster
Rep:
|
Why?? I'm doing name based virtual hosting just fine on one IP, multiple DNS names.
|
|
|
|
07-27-2002, 09:00 PM
|
#4
|
|
Member
Registered: May 2002
Distribution: A few
Posts: 488
Rep:
|
No, SSL needs 1 IP per virtualhost
|
|
|
|
07-28-2002, 09:15 PM
|
#5
|
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Original Poster
Rep:
|
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.
|
|
|
|
07-29-2002, 01:17 AM
|
#6
|
|
Member
Registered: May 2002
Distribution: A few
Posts: 488
Rep:
|
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.
|
|
|
|
07-29-2002, 08:09 AM
|
#7
|
|
Member
Registered: Jul 2001
Location: Utah
Distribution: RedHat v7.3, OpenBSD 3.3, FreeBSD 5.0
Posts: 327
Original Poster
Rep:
|
OK. Thanks for the help!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:17 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|