tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Carrillo <tom...@daydream.stanford.edu>
Subject Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Date Mon, 02 Feb 2004 21:04:03 GMT
Hi,

The JkMount directives tell Apache to pass these request thru the 
Connector to Tomcat.

I do this very same thing for jWebMail, cause I don't want it accessible 
thru http, only https. Here's my ssl.conf config section for it:
--------------------------------------------------------------
<VirtualHost _default_:443>
#Other stuff about your ssl host

#Webmail
    # Static files
    Alias /webmail "/usr/local/tomcat/webapps/webmail"

    <Directory "/usr/local/tomcat/webapps/webmail">
        Options Indexes FollowSymLinks
        DirectoryIndex index.jsp
    </Directory>

    <Location "/webmail/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/webmail/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /webmail/do/*  ajp13
    JkMount /webmail/*.jsp  ajp13
    JkMount /webmail/WebMail  ajp13
    JkMount /webmail/WebMail/*  ajp13
---------------------------------------

Does that help? BTW, this is all on my site but there's quite a bit of stuff there that you
can miss it.

Oscar
http://www.linuxjava.net/howto/webapp/



On Mon, 2 Feb 2004, Ralf Schneider wrote:

> Am Montag, 2. Februar 2004 21:26 schrieb Oscar Carrillo:
> > I believe you need to setup a VirtualHost section in httpd.conf even if
> > you don't really need Virtual Hosting.
> 
> I did that.
> 
> > Also try Redirecting the whole site. I'm not sure if I've tried just the
> > webapp. I'm not sure if you need to compile the rewrite module for the
> > redirect, but I don't think so.
> >
> > #httpd.conf VirtualHost section of myhost.mydomain
> > Redirect / https://myhost.mydomain/mywebapp
> 
> But I don't want to do this with the whole site, because there are parts that 
> should be accessible with normal HTTP.
> 
> > Also, you can't include the mod_jk configuration. You must put the mount
> > commands explicitly in each virtual host. If you include the modjk conf
> > file "Include mod_jk.conf", then it will be global and all hosts will get
> > access. This is likely your problem especially if you haven't put mod_jk
> > mount commands in "ssl.conf".
> 
> I did not put any JKMount statements in ssl.conf. Which do I need? Something 
> like this:
> 
> JKMount /demo_02/* ajp13
> 
> Or anything else? I think I did not understood correctly what this JkMount 
> does.
> 
> Ralf.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message