LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-11-2010, 08:39 AM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Using ssl on name based virtual server


Hi all,

I want to make virtual name apache server in order to run http and https on my domain, but I found in apache documentation that it is not supported. I ask here because the docs can be old and in the newer version that could be possible.

I use apache vesrion 2.2 and this is waht I want to make:

1. configure my domain name to use http protocol
2. configure subdomain.domain to use https protocol

For now I can start https only in the domain and subdomain but can't do that separately.
 
Old 09-11-2010, 09:18 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
SSL requires a unique ip address so you can't have two sites using SSL on one ip address. You have to assign your subdomain a different ip address than the standard domain.
 
Old 09-11-2010, 11:01 AM   #3
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
Yes, it is written in the documentation, but I menage to do it somehow. I use NameVirtualHost directive with IP and :80 for http and :443 for https. It works for now (if I am not seeing cached result).
 
Old 09-11-2010, 11:09 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by smoker View Post
SSL requires a unique ip address so you can't have two sites using SSL on one ip address. You have to assign your subdomain a different ip address than the standard domain.
Today 16:39
This is no longer true. You can use Server Name Indication (SNI) with ssl, so you can have as many ssl vhosts you want. Take a look at the documentation here.

Regards

Last edited by bathory; 09-11-2010 at 11:13 AM.
 
Old 09-11-2010, 11:21 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by bathory View Post
This is no longer true. You can use Server Name Indication (SNI) with ssl, so you can have as many ssl vhosts you want. Take a look at the documentation here.

Regards
Interesting, thanks.
 
  


Reply



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
LXer: SSL-enabled Name-based Apache Virtual Hosts with mod_gnutls LXer Syndicated Linux News 0 08-10-2007 05:46 PM
Looking for a Linux based Virtual Server provider HGeneAnthony Linux - General 2 03-28-2007 06:15 AM
SSL and name-based virtual servers psychobyte Linux - Networking 1 01-04-2006 05:35 PM
Apache SSL, and Virtual Server problem Spreegem Debian 2 04-07-2005 04:54 PM
Apache, I Can not get Name based Virtual Server to work kcasey Linux - Software 3 01-23-2004 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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