LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2012, 03:30 PM   #1
adall26
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Multiple SSL on one server with external/internal IP


Server is ubuntu using apache2 and glassfish.

We have three different domains served up from one server. Each domain has its unique internal and external IP address. My question is how to configure the virtual hosts? Do you need to enter both IP (internal and external) for each of the domains? Also, do we need an entry for NameVirutalHost ?

AR
 
Old 01-10-2012, 01:38 AM   #2
mulyadi.santosa
Member
 
Registered: Sep 2011
Posts: 96

Rep: Reputation: 15
Hi Adall

There are many tutorials in the Internet that discusses this. One of them is:

http://ubuntu-tutorials.com/2008/01/...rtual-hosting/

I am not sure what you meant by "external and internal IP", but for sure if you want your web site to be accessible by the whole Internet you need to assign public IP address.

Name entry? Such as A record in DNS server? Yup, that too
 
Old 01-10-2012, 04:02 AM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by adall26 View Post
Server is ubuntu using apache2 and glassfish.

We have three different domains served up from one server.
.....
Also, do we need an entry for NameVirutalHost ?
Hi,

Of course you need it, take a look at the Apache multiple Vhost SSL:
- Multiple_SSL_Virtual_Hosts <-- disregard the Zimbra and take a look at
Code:
<VirtualHost 1.1.1.1:443>
  ServerName zimbra.domaina.moc
  ProxyPass / http://zimbra.domain.moc:8080/
  ProxyPassReverse / http://zimbra.domain.moc:8080/
  SSLEngine On
  SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
  SSLCertificateKeyFile /etc/httpd/conf/domaina_ssl/zimbra.zmb.moc.key
  SSLCertificateFile /etc/httpd/conf/domaina_ssl/zimbra.zmb.moc.crt
</VirtualHost>

<VirtualHost 1.1.1.2:443>
this is how you should have it defined for your domains.

good luck
  ServerName zimbra.domainb.moc
  ProxyPass / http://zimbra.domain.moc:8080/
  ProxyPassReverse / http://zimbra.domain.moc:8080/
  SSLEngine On
  SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
  SSLCertificateKeyFile /etc/httpd/conf/domainb_ssl/zimbra.domainb.moc.key
  SSLCertificateFile /etc/httpd/conf/domainb_ssl/zimbra.domainb.moc.crt
</VirtualHost>
 
1 members found this post helpful.
Old 01-17-2012, 02:48 PM   #4
adall26
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you for your help and link.
 
  


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
Configure internal zimbra server to use external server to send mails? linuxlover.chaitanya Linux - Server 27 02-20-2010 01:43 AM
Internal/External Mail Server Aeiedil Linux - Software 27 10-13-2009 10:16 AM
iptables forward - multiple external to multiple internal astbis Linux - Networking 3 01-24-2008 05:27 PM
using external mail server with internal web server blckspder Linux - Server 1 01-07-2008 09:31 PM
Getting things straight: Apache, SSL, Multiple External IPs / Internal IPs robin.com.au Linux - Server 21 10-14-2007 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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