httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible" <m...@raibledesigns.com>
Subject RE: [users@httpd] Multiple IP/SSL hosts
Date Thu, 26 Sep 2002 20:44:36 GMT
Hmmm, this worries me.  Let me start by explaining what I'd like to do.

1 Apache 2.0.x webserver
1 Linux box
2-20 Tomcat instances, each with an installation of my application for
customers.
SSL Enabled for all so login is encyrpted

I've successfully setup Apache and Tomcat using this article:
http://raibledesigns.com/tomcat.
I've successfully setup Apache + SSL using this article:
http://raibledesigns.com/tomcat/ssl-howto.html.

In my ssl.conf, I have:

<VirtualHost _default_:443>

#  General setup for the virtual host
DocumentRoot "d:/tools/apache-2.0/Apache2/htdocs"
ServerName localhost:443
...

"localhost" will eventually be the main domain name I'm hosting on.

In named.conf, I have:

<VirtualHost localhost1:80>
ServerName localhost1
JkMount /*.jsp tomcat1
JkMount /servlet/* tomcat1
</VirtualHost>

<VirtualHost localhost2:80>
ServerName localhost2
JkMount /*.jsp tomcat2
JkMount /servlet/* tomcat2
</VirtualHost>

And I can successfully get to localhost1 and localhost2 (and the correct
tomcat's) using both http:// and https://.  Is this a proper
configuration?  If not, please let me know - I'd like to make both
articles above as accurate as possible.

Thanks,

Matt

> -----Original Message-----
> From: Robin P. Blanchard [mailto:robin.blanchard@georgiacenter.org] 
> Sent: Thursday, September 26, 2002 2:20 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Multiple IP/SSL hosts
> 
> 
> 
> > Is there a way to use both IP-host hosting AND name-based?
> 
> yes, you can mix and match. but you will never be able to use SSL 
> (properly) on a name-based virtual host.
> 
> if you have only port 80 traffic for a couple of fqdn's you could use 
> name-based hosting for those. you'd therefore use the namevirtualhost 
> directive. once you've got the need for multiple SSL enabled 
> hosts, or 
> hosts that will be both non-SSL and SSL, you need to use ip-based 
> virtual hosting, which uses the listen directive.
> 
> 
> -- 
> ----------------------------------------
> Robin P. Blanchard
> Systems Integration Specialist
> Georgia Center for Continuing Education
> fon: 706.542.2404 <|> fax: 706.542.6546
> ----------------------------------------
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project. See 
> <URL:http://httpd.apache.org/userslist.html> for more info. 
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message