tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Carrillo <>
Subject Re: tomcat /apache2 / jk2 rewrites https:// requests as http://
Date Mon, 03 Feb 2003 08:36:29 GMT
I just had this same problem. Although I'm using mod_jk, but it should be 

You can create a virtual host in http.conf for port 80. You probably have 
a file called ssl.conf also for apache. It has a virtual host built in.

You need to look at your tomcat/conf/auto/mod_jk.conf and take the
appropriate lines and paste them into your http.conf and ssl.conf INSIDE
<VirtualHost> tags. Particularly the JkMount directives. Then make sure
you no longer have an include for that tomcat/conf/auto/mod_jk.conf file
directly. Also make sure to have your DocumentRoot directives point to 
two different directories. Hopefully that works for you, if not I can give 
some more details.

I'm currently documenting every step I need to do to install the following
in RedHat 7.3:

-JDK 1.4.0_01 (binary)
-Tomcat 4.1.18 (binary)
-Mod_jk Connector (binary)
-Openssl 0.9.7 (source)
-Apache/SSL/other modules/Virtual Host (source)
-Postgresql 7.1.3 + JDBC (source)
-Pgaccess (source)
-Daemon scripts for all that run in /etc/rc.d/init.d/*

I'll probably post it when I'm done.

Good luck,

On 3 Feb 2003, Aaron Elkiss wrote:

> Ok... What I want to do is have the tomcat root context accessible via
> https on /tomcat, running through apache2 with mod_jk2. Ok, no problem -
> jk2 is configured and running, the application paths in tomcat have all
> been changed to have /tomcat prepended. Maybe I should somehow use
> mod_rewrite instead, but this seems to work.
> I added the following in
> [uri:/tomcat/*]
> info=Tomcat
> I can't figure out how to get this to apply only to the SSL virtual host
> in apache, but that's not a big deal - I can just deny access to that
> location from the non-SSL virtual host and allow access from the SSL
> host, or set up some kind of rule so that non-SSL requests get rewritten
> appropriately.
> The main problem is that if I go to,
> something feels the need to rewrite that to
>, which needless to say does not work.
> On the other hand, if there's no need to do any redirection, i.e.
>, everything works okay.
> What's going on here?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message