LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-16-2007, 02:29 PM   #1
Mr_CHISOL
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 (kachtus.net) 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 (mail.kachtus.net and secure.kachtus.net 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:https://secure.kachtus.net/sites-available/, 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), https://kachtus.net also works as it should, but not the rest (keys
.*, http://kachtus.net 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.


ps
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.
:?)
ds
 
Old 02-16-2007, 03:17 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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 http://httpd.apache.org/docs/2.0/ssl...q.html#vhosts2 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 http://httpd.apache.org/docs/2.0/vhosts/ip-based.html that may help.
 
Old 02-16-2007, 04:59 PM   #3
Mr_CHISOL
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); https://mail.kachtus.net & https://secure.kachtus.net
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. ;?)


Addition:
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 06:13 PM.
 
  


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


All times are GMT -5. The time now is 01:22 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