LinuxQuestions.org
Help answer threads with 0 replies.
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 04-09-2011, 05:53 AM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
How to cnfigure second site with ssl


Hi all,

I have one site running on ssl and i want to configure second. How can i do this? My first site is configured on port 443.

here is ports.conf
Code:
ServerName kdelchev.com

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
</IfModule>
here is my first site
Code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin webmaster@localhost

        ServerName      kodeimage.kdelchev.com
        ServerAlias     kodeimage.kdelchev.com

        DocumentRoot /var/www/kodeimage

...
and the second i want to use with ssl
Code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin webmaster@localhost

        ServerName      kodevideo.kdelchev.com
        ServerAlias     kodevideo.kdelchev.com

        DocumentRoot /var/www/kodevideo


...
The sites should be available on https://<sitename>.kdelchev.com

I am using debian lenny

Thanks!
 
Old 04-09-2011, 06:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can only serve a single SSL cert on the port as there is no knowledge of what the site name you want provided to the web server until AFTER ssl is established. So for multiple sites you need either a wildcard certificate for *.youdomain.com or any additional fqdn's listed at SubjectAltName's within the certificate.
 
  


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
[SOLVED] Enabling ssl with only one domain pointing to site duceduc Linux - Newbie 8 09-07-2010 06:00 AM
Apache with SSL: Can't connect to the site! djbon2112 Linux - Software 4 11-30-2009 08:08 PM
SSL Certificates and Site Performance thew00t Linux - Networking 1 08-09-2006 01:46 AM
creating an SSL page under non SSL site with apache1.33? taiwf Linux - Software 1 06-27-2006 01:06 AM
how to cnfigure proxy settings in redhat 10.0 raju_dhakar2002 Linux - Networking 4 02-10-2005 10:11 AM

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

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

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