Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-16-2007, 01:29 PM   #1
LQ Newbie
Registered: Feb 2007
Location: Sweden
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
Apache, VirtualHost and SSL

Hi All.

Let me first say: Gahhh... Thanks ;?)

Is it really supposed to be this hard? Oh.. Should perhaps describe my problem

I have a server and a domain that points to it ( and I'm trying to get SSL to work as I want.
The first thing that I want is the option to visit the site via a "secure connection" (https/SSL).
Then I have parts (both dirs and sub-domains) that I want to force SSL ( and at the moment). It doesn't seem to be too hard to accomplish.

I use files in sites-availabe/ to configurate the different subdomains (I had this as reference) (Here's my files:, apache2.conf doesn't have any conf. in this case...).

The secure.* works as it should (as do mail.*, but that one is still in apache2.conf to make sure it works until I know how to fix the rest, it looks like secure), also works as it should, but not the rest (keys
.*, etc).

I hope that you get the problem as I have a tendense to make things more complex than it is.. :?)

Any ideas are welcome.

Note I've been working with this problem for a week (along with setting up sendmail, which I still hasn't finished).
I need the server/site up as soon as possible but I haven't time to mess with it as I have another site to finnish, besides I'm getting tired on not getting it to work.
Old 02-16-2007, 02:17 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
I'm not sure I fully understand your problem, but if you're using name based hosts in your virtual hosts setup (and the info at the Debian site suggests you are) then you can't have multiple SSL domains. Have a look at for a brief description.

It looks like you'll need to use separate IP addresses for different SSL hosts or use different port numbers for different SSL hosts. I haven't set up IP based virtual hosts here but there's some info at that may help.
Old 02-16-2007, 03:59 PM   #3
LQ Newbie
Registered: Feb 2007
Location: Sweden
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Ok... Three questions:

1. But I DO have two different "SSL-hosts" (or don't I); &
2. Does apache-ssl work better?? (Have no clue...)
3. WHY isn't there a nice way around it (or even why does this problem exist, I get the problem with mod_ssl etc, but why can't the "host processing" take part after the "SSL processing" if you wan't it to...).
I'd like (and would add if I was developing apache) an option to have modules integrate either before or after (or both!?) a certain step in the processing. But that's just me. ;?)

Can Apache-SSL be configured to serve "non-ssl" for certain hosts?
If there's no way get this to wrk with a single daemon I guess I have to run two...

Last edited by Mr_CHISOL; 02-16-2007 at 05:13 PM.


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
SSL & NameBased VirtualHost ?? RHrulz Linux - Networking 1 12-12-2004 05:33 PM
Help with Apache <VirtualHost> please. smakkythecamel Linux - Networking 2 06-12-2003 07:15 PM
apache virtualhost jonfa Linux - Networking 5 08-12-2002 06:07 PM
SSL Configuration on an Apache VirtualHost sancho5 *BSD 6 07-29-2002 08:09 AM > Forums > Linux Forums > Linux - Server

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration