I had specified JkMount in Virtual Host directive in httpd.conf file and
specified the path in the host directive in server.xml.  They are as
following:

In httpd.conf, 
                <VirtualHost host1.myorg.com:443>
                DocumentRoot j:/webapps/rootexample/secure_html
                SSLEnable
                SSLClientAuth none
                ServerName host1.myorg.com
                </VirtualHost>

In server.xml,
<Host name="host1.myorg.com" >
                        <Context path="" 
                    docBase="j:/webapps/rootexample/secure_html"/>
</Host>


If I set the virtual host name (for SSL) as same as server name, it won't
work.  When I https://host1.myorg.com <https://host1.myorg.com> , the log
file show that the tomcat still looks for the public_html directory (which
is the document root directory for the web server).  But I set the virtual
host name different from the server name, it works fine.  Plus, I notice
from the console shows as followings when tomcat starts up:

        ContextManager: Adding context Ctx( host1.myorg.com: )

I am not sure if I should specify the port in the host directive, in order
to tell tomcat to look for different path for SSL.  If so, what is the
syntax.  I cannot find from the user guide.  I tried <Host
name="host1.myorg.com:443"> and <Host name="host1.myorg.com" port="443'>.
None of them works (the console shows "Adding contect
Ctx(host1.myorg.com:443: ).    Please advise.


Thanks,
Connie





                -----Original Message-----
                From:   GOMEZ Henri [mailto:[EMAIL PROTECTED]]
                Sent:   Thursday, February 15, 2001 11:21 AM
                To:     [EMAIL PROTECTED]
                Subject:        RE: mod_jk  + ssl + apache

                >Does anyone know how to configure the apache and tomcat so 
                >that the tomcat will look for the different path other than
the root
                document 
                >when ssl is enabling (e.g. https://host1.myorg/)
<https://host1.myorg/)> ? 

                Could you be more explicit ?

                >I'm using mod_jk as connector with AJP13.  How to configure
tomcat so 
                >that a context path can only be looked for when using SSL
only?

                Specify JkMount on SSL part (ie in mod_ssl in <Virtual
                hostl:443>.....</Virtual>

        
---------------------------------------------------------------------
                To unsubscribe, e-mail:
[EMAIL PROTECTED]
                For additional commands, email:
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to