tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Antwort: Re: SSL Apache & Tomcat (NameBased VirtualHosts)
Date Fri, 20 Jul 2001 10:03:32 GMT

I think it depends on the apache you use.
If it uses mod_ssl you can use one apache for http and https
if you use an precompiled package (like the apache-ssl in debian)
you need to apaches

if you have mod_ssl
the virtual hosts should look like this

Listen [IP-ADDRESS]:80

<VirtualHost [IP-ADDRESS]:80>
    ServerName [HOST.DOMAIN]
    DocumentRoot /web/[HOST.DOMAIN]/80/htdocs
    ErrorLog /web/[HOST.DOMAIN]/80/logs/error_log
    CustomLog /web/[HOST.DOMAIN]/80/logs/transfer_log combined

<IfDefine SSL>

Listen [IP-ADDRESS]:443

<VirtualHost [IP-ADDRESS]:443>
    ServerName [HOST.DOMAIN]
    DocumentRoot /web/[HOST.DOMAIN]/443/htdocs
    ErrorLog /web/[HOST.DOMAIN]/443/logs/error_log
    CustomLog /web/[HOST.DOMAIN]/443/logs/transfer_log sslrequest
    SSLLog /web/[HOST.DOMAIN]/443/logs/ssl_engine_log

    SSLEngine on
    SSLCertificateFile /opt/apache/conf/ssl.crt/[HOST.DOMAIN].crt
    SSLCertificateKeyFile /opt/apache/conf/ssl.key/[HOST.DOMAIN].key



                    "Lars Nielsen                                                        
                    Lind"                An:     <>  
                    <moonie@world        Kopie:                                       
          >           Thema:  Re: SSL Apache & Tomcat (NameBased
                    antworten an                                                         

It dows not function correct. So I'll have to start one Apache instance
with the httpd.conf file (port80) and another with the httpd_ssl.conf file
(port443 - made by myself). Just as it is written in Professional Apache
from Wrox.

It is apparently the one and only way to solve the problems with NameBased
VirtualHost and mod_ssl.

I have tried to use the apache, apachectl command, and also the
/ect/rc.d/init.d/httpd start command with -f <filename>, but it won't start
with the SSL settings. The apache and apachectl won't work at all.

Any solutions.

----- Original Message -----
From: "Ralph Einfeldt" <>
To: <>
Sent: Thursday, July 19, 2001 3:11 PM
Subject: AW: SSL Apache & Tomcat (NameBased VirtualHosts)

1. this is a bit off topic for questions like that, it's
   better go to the apache list

2. you don't have to setup 2 apaches:
   just define two virtual hosts in httpd.conf:


      ServerName www.domain.tld
      DocumentRoot /www/domain

      ServerName www.domain.tld
      DocumentRoot /www/domain

      ServerName www.otherdomain.tld
      DocumentRoot /www/otherdomain

      ServerName www.otherdomain.tld
      DocumentRoot /www/otherdomain


View raw message