LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2004, 04:31 PM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
Apache limitation?


It is true that Apache cannot run SSL with a virtual name server?
for example with 1 IP address you cannot run
http://www.domain.com
http://www.domain2.com
https://www.secure.com:443


I just find it hard to believe nobody has developed a solution to this problem.
 
Old 10-21-2004, 09:39 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I do...
Have you tried this and it failed, or simply read about it somewhere?

Cool
 
Old 10-21-2004, 10:40 PM   #3
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Original Poster
Rep: Reputation: 30
you have it working?

I read it here on linuxquestions ( I can post the link if you would like) and I have been unable to get it working. I can get more than one virtual name server or one SSL and only 1 unencrypted.

Did you say you have SSL and more than 1 virtual name server working? If you do, I would really like to pick your brain on how you did it.

 
Old 10-30-2004, 02:27 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I didn't have to do much... I simply set it up in /etc/apache2/conf/vhosts/vhost.conf and restarted Apache, and within that same conf I have 2 other domains setup, but only 1 of the 3 are using SSL.

Cool
 
Old 10-30-2004, 05:00 PM   #5
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Original Poster
Rep: Reputation: 30
I got it, thanks C.

I had the hosts in 2 different files.... finally I moved everything over to the ssl.conf file and it started working fine..

took a while to figure that out...
R
 
Old 10-30-2004, 06:37 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
SSL doesn't work with name based hosting, but you can host multiple non-SSL domains using name based hosting and one SSL domain together with the same Apache server. The rule of thumb is that you need one IP address per SSL domain -- beyond that, it doesn't matter. I'd be curious to know why this is exactly -- is it a limitation/security feature in the SSL protocol?
 
Old 10-31-2004, 04:03 AM   #7
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
The rule of thumb is that you need one IP address per SSL domain
Here is why: http://www.modssl.org/docs/2.8/ssl_faq.html#ToC47
Actually, the problem is that you cannot use more then 1 SSL certificate on 1 IP address. That means that although you could set up name-based virtual hosts on 1 IP address with https, they would all share 1 SSL certificate (it works, I've been there).
And unless you do some very clever tricks when generating the certificate, the web-browsers would complain that the host name written in the cert does not match the address typed in the browser.
 
  


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
Session Per Ip Limitation Fr33B5D Linux - Networking 4 08-28-2005 08:39 PM
Samba limitation?? Manuel-H Linux - Software 2 05-12-2005 10:12 PM
disk limitation lynos Linux - General 2 09-21-2004 12:51 PM
RH 7.1 LILO limitation? darkangel Linux - General 18 08-11-2002 02:35 PM
Memory limitation Magnus Linux - General 2 01-18-2001 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 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
Open Source Consulting | Domain Registration