You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Miller <po...@gmail.com> on 2006/08/03 22:45:15 UTC

Tomcat SSL question

When I run my app using Tomcat only (without apache httpd) I specify the
ports for secure and non-secure pages; http://localhost:8080/my-app or
https://localhost:8443/my-app for example.

I've installed mod_jk hoping that Apache httpd would handle
the connection allowing me to omit the port numbers. Is that what should be
happening?
I've got it to where I can leave out port numbers and the app works, but
when I navigate to an encrypted page the port appears in the url.

Any suggestions?

I'm using Tomcat 5.5.9, mod_jk 1.2.18 (auto-config) & Apache httpd 2.0.59.
Both servers are running on the same machine.

Thanks,
David

Re: Tomcat SSL question

Posted by David Miller <po...@gmail.com>.
Thanks Filip,

It's now working as I thought it should. I did what you said as well as
manually configuring a worker and adding said worker to a virtual host for
port 443.

Oh and special thanks to Li.

David


On 8/4/06, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>
> set "redirectPort" on your AJP(port 8009) connector to 443
>
> http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
>
> using mod_jk, you will not use port 8080 and 8443, only 8009.
>
> Filip
>
>
> David Miller wrote:
> > I can't do that because the web server uses those ports.
> >
> > Perhaps someone can just verify the following; will tomcat with mod_jk
> > allow
> > me to access encrypted pages without seeing the port in the URL?
> > Example: we want to see this https://localhost/my-secured-webapp and NOT
> > this https://localhost:8443/my-secured-webapp
> >
> > David
> >
> >
> >
> >
> > On 8/3/06, Mark Thomas <ma...@apache.org> wrote:
> >>
> >> David Miller wrote:
> >> > When I run my app using Tomcat only (without apache httpd) I
> >> specify the
> >> > ports for secure and non-secure pages; http://localhost:8080/my-appor
> >> > https://localhost:8443/my-app for example.
> >> >
> >> > I've installed mod_jk hoping that Apache httpd would handle
> >> > the connection allowing me to omit the port numbers. Is that what
> >> should
> >> be
> >> > happening?
> >>
> >> Or you could just change the ports in server.xml to 80 and 443 Don't
> >> forget to change the redirect port as well.
> >>
> >> Mark
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> > ------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat SSL question

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
set "redirectPort" on your AJP(port 8009) connector to 443

http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

using mod_jk, you will not use port 8080 and 8443, only 8009.

Filip


David Miller wrote:
> I can't do that because the web server uses those ports.
>
> Perhaps someone can just verify the following; will tomcat with mod_jk 
> allow
> me to access encrypted pages without seeing the port in the URL?
> Example: we want to see this https://localhost/my-secured-webapp and NOT
> this https://localhost:8443/my-secured-webapp
>
> David
>
>
>
>
> On 8/3/06, Mark Thomas <ma...@apache.org> wrote:
>>
>> David Miller wrote:
>> > When I run my app using Tomcat only (without apache httpd) I 
>> specify the
>> > ports for secure and non-secure pages; http://localhost:8080/my-app or
>> > https://localhost:8443/my-app for example.
>> >
>> > I've installed mod_jk hoping that Apache httpd would handle
>> > the connection allowing me to omit the port numbers. Is that what 
>> should
>> be
>> > happening?
>>
>> Or you could just change the ports in server.xml to 80 and 443 Don't
>> forget to change the redirect port as well.
>>
>> Mark
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat SSL question

Posted by David Miller <po...@gmail.com>.
I can't do that because the web server uses those ports.

Perhaps someone can just verify the following; will tomcat with mod_jk allow
me to access encrypted pages without seeing the port in the URL?
Example: we want to see this https://localhost/my-secured-webapp and NOT
this https://localhost:8443/my-secured-webapp

David




On 8/3/06, Mark Thomas <ma...@apache.org> wrote:
>
> David Miller wrote:
> > When I run my app using Tomcat only (without apache httpd) I specify the
> > ports for secure and non-secure pages; http://localhost:8080/my-app or
> > https://localhost:8443/my-app for example.
> >
> > I've installed mod_jk hoping that Apache httpd would handle
> > the connection allowing me to omit the port numbers. Is that what should
> be
> > happening?
>
> Or you could just change the ports in server.xml to 80 and 443 Don't
> forget to change the redirect port as well.
>
> Mark
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat SSL question

Posted by Mark Thomas <ma...@apache.org>.
David Miller wrote:
> When I run my app using Tomcat only (without apache httpd) I specify the
> ports for secure and non-secure pages; http://localhost:8080/my-app or
> https://localhost:8443/my-app for example.
> 
> I've installed mod_jk hoping that Apache httpd would handle
> the connection allowing me to omit the port numbers. Is that what should be
> happening?

Or you could just change the ports in server.xml to 80 and 443 Don't
forget to change the redirect port as well.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org