LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-05-2014, 08:24 AM   #1
kirthanshetty
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Rep: Reputation: Disabled
https virtual host (works only for one site)


Hi,
I have created two HTTPS virtual host on my ubuntu server for example
https://sitea.example.com and https://siteb.example.com
If i click on https://sitea.example.com or https://siteb.example.com it shows content of https://siteb.example.com
but i have given both a different document root.

If i disable all https and enable single https virtual host, it works fine.
Can any one help me on this

Last edited by kirthanshetty; 09-05-2014 at 08:26 AM.
 
Old 09-05-2014, 08:48 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,689

Rep: Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030
Apache only knows how to use a single SSL certificate per IP address.

My guess is that you're trying to use multiple SSL certificates instead of a multi-domain cert.
 
Old 09-06-2014, 04:40 PM   #3
kirthanshetty
LQ Newbie
 
Registered: Nov 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
https virtual host (works only for one site)

Hi,
If i run two https virtual host i'm getting below warning

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Sep 07 03:04:40 2014] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Sep 07 03:04:41 2014] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
 
Old 09-06-2014, 09:00 PM   #4
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
There is a way to run multiple SSL sites on one IP. I have not done it with Apache, but I did a small scale test with Nginx a while back and it does work.


https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI
 
Old 09-08-2014, 08:49 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,689

Rep: Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030
Quote:
Originally Posted by grim76 View Post
Just be aware that Windows XP does not support SNI, so anyone that visits your sites using XP will get errors. This may or may not be important for the OP's server.

"No support for any Internet Explorer version on Windows XP because SNI depends on the SChannel system component shipped with Windows Vista"

HA-Proxy and STUD can do SSL termination though, so it's possible to use these and then pass the request through to a web server running on port 80, thus using HA-Proxy/Stud to do the SSL encryption/decryption.
 
  


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] Changing my site's domain - need to set up an Apache virtual host for 301 redirects Pyplate Linux - Networking 3 07-15-2013 04:57 AM
[SOLVED] virtual host multiple site same direcotry onthefritz Linux - Server 5 04-27-2012 03:49 PM
cgi-bin again being forbidden on my virtual host site j.smith1981 Linux - Server 2 03-07-2011 09:17 AM
Apache 2 / SSL and virtual host under GNU/Linux Debian Etch - http and https scls19fr Linux - Server 0 10-09-2008 10:11 AM
https & virtual host v2lk Linux - Networking 2 10-07-2003 12:43 AM

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

All times are GMT -5. The time now is 03:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration