You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eddie Bush <ek...@swbell.net> on 2002/06/25 15:12:05 UTC

Tomcat 4.0.3 - Apache 1.3 - Redirecting SSL

Hello.  I'm having an odd problem.  It seems that despite configuring my
Tomcat server to redirect traffic that is inappropriate for a
connector's scheme, it does not do it.  I was aware this was an issue in
earlier releases, but thought it had been resolved by now.  Everything
works, except for the redirection.  Here is what I do:

I have two warp connects set up (looking in jk2 etc too, but not
comfortable with it yet - yes I know my static content is being served
by Tomcat =( ).  One listens on port 8008 (http) and another listens on
8010 (https).  I did not set a scheme for the http connector because it
says that http is the default - so I shouldn't have to specify that.  I
did specify a redirect port of 443 (which is where Apache SSL listens
for connections).  My second connector (listening on port 8010) has a
redirect port value of 80 (to send the request back to Apache non-SSL)
and a scheme of https.

In my Apache config, I do have an entry for both connectors (by
specifying which port the request should be sent to) so that the request
will go on to Tomcat and let it handle it as I expect it to.

Could someone possibly point out a flaw in my thinking?  Is this still
an issue, or am I approaching the solution poorly?  Have I stated my
problem poorly? =)

I did try to hit the app through SSL and it worked flawlessly.  However,
going at it through non-SSL channels just yields an empty page.  Any
help would be most appreciated =)

Thank you for your time,

Eddie Bush



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 - Apache 1.3 - Redirecting SSL

Posted by Eddie Bush <ek...@swbell.net>.
There was a 4.0.3 LE?  Is that why I had to snag the JDBC stuff?  Just curious
=)  I didn't think the LE versions came out til a tad later - obviously I must
be mistaken!  Could someone confirm that the absence of JTA/JDBC jars would
indicate I installed 4.0.3 LE?  I just got the RPMs off the binary site - didn't
see any mention of it being an 'LE' edition.

Thanks!

Eddie

Joseph Molnar wrote:

> Hi Eddie.
>
> I cover what I do with SSL (and more) in an article I did on setting up
> Tomcat an Apache on WARP. I have systems using this config with great
> success.
>
> http://www.codesta.com/knowledge/technical/tomcat_warp_apache/
>
> Joe


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 - Apache 1.3 - Redirecting SSL

Posted by Eddie Bush <ek...@swbell.net>.
Joe,

As much help as your site is (and I found it enlightening and clearifying in
several ways), it does not address whether the Connector now successfully
implements "redirectPort='#'".  I am about 99.99% certain my config is all fine
and dandy.  My question is whether or not the redirectPort attribute is
functional yet or not.  I know it wasn't working correct in certain Tomcat
versions - and I wanted to get some idea of what the earliest version of Tomcat
was in which this behavior was fixed to act as it should.

You provide an excellent work-around for not being able to use redirectPort
successfully, however, my goal is to use redirectPort successfully if there is
any way I can at all.  Should I find this is not possible under current
(reasonably) stable versions of Tomcat, I will have no alternative but to
implement the scheme you have suggested.  I do appreciate your heads-up on your
walk-through, however I would rather not 'work-around' things unless I
absolutely have to.

Would anyone happen to know off the top of their head which version of Tomcat
properly supports the redirectPort attribute for the Context element?  Please
guys/gals - help me do this the right way.

Regards,

Eddie Bush

Joseph Molnar wrote:

> Hi Eddie.
>
> I cover what I do with SSL (and more) in an article I did on setting up
> Tomcat an Apache on WARP. I have systems using this config with great
> success.
>
> http://www.codesta.com/knowledge/technical/tomcat_warp_apache/
>
> Joe


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 - Apache 1.3 - Redirecting SSL

Posted by Eddie Bush <ek...@swbell.net>.
I'm there - will let you know =)  THANKS for your reply ;)

Eddie

Joseph Molnar wrote:

> Hi Eddie.
>
> I cover what I do with SSL (and more) in an article I did on setting up
> Tomcat an Apache on WARP. I have systems using this config with great
> success.
>
> http://www.codesta.com/knowledge/technical/tomcat_warp_apache/
>
> Joe


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.3 - Apache 1.3 - Redirecting SSL

Posted by Joseph Molnar <jo...@hotmail.com>.
Hi Eddie.

I cover what I do with SSL (and more) in an article I did on setting up
Tomcat an Apache on WARP. I have systems using this config with great
success.

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/

Joe


----- Original Message -----
From: "Eddie Bush" <ek...@swbell.net>
To: <to...@jakarta.apache.org>
Sent: Tuesday, June 25, 2002 6:12 AM
Subject: Tomcat 4.0.3 - Apache 1.3 - Redirecting SSL


> Hello.  I'm having an odd problem.  It seems that despite configuring my
> Tomcat server to redirect traffic that is inappropriate for a
> connector's scheme, it does not do it.  I was aware this was an issue in
> earlier releases, but thought it had been resolved by now.  Everything
> works, except for the redirection.  Here is what I do:
>
> I have two warp connects set up (looking in jk2 etc too, but not
> comfortable with it yet - yes I know my static content is being served
> by Tomcat =( ).  One listens on port 8008 (http) and another listens on
> 8010 (https).  I did not set a scheme for the http connector because it
> says that http is the default - so I shouldn't have to specify that.  I
> did specify a redirect port of 443 (which is where Apache SSL listens
> for connections).  My second connector (listening on port 8010) has a
> redirect port value of 80 (to send the request back to Apache non-SSL)
> and a scheme of https.
>
> In my Apache config, I do have an entry for both connectors (by
> specifying which port the request should be sent to) so that the request
> will go on to Tomcat and let it handle it as I expect it to.
>
> Could someone possibly point out a flaw in my thinking?  Is this still
> an issue, or am I approaching the solution poorly?  Have I stated my
> problem poorly? =)
>
> I did try to hit the app through SSL and it worked flawlessly.  However,
> going at it through non-SSL channels just yields an empty page.  Any
> help would be most appreciated =)
>
> Thank you for your time,
>
> Eddie Bush
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>