You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Manoj Kithany <ma...@hotmail.com> on 2002/11/12 21:04:45 UTC
Tomcat Application on Port 443 or 8080?
Hi Experts:
My Apache+SSL is working now - thanks to you all. I checked it using
https://www.kithany.com.
However, I have a small Application which contains JSP+Servlets which calls
Oracle DB via JDBC. This application is working fine when I type
http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as
https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie page
does'nt shows up.
I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
listens to port 8080 - so how do I integrate both the ports to work
together? Any useful information on above is appreciated.
THANKS!
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat Application on Port 443 or 8080?
Posted by yves lambert <le...@free.fr>.
Manoj Kithany wrote:
> Hi Experts:
>
> My Apache+SSL is working now - thanks to you all. I checked it using
> https://www.kithany.com.
>
> However, I have a small Application which contains JSP+Servlets which
> calls Oracle DB via JDBC. This application is working fine when I type
> http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as
> https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie
> page does'nt shows up.
>
> I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
> listens to port 8080 - so how do I integrate both the ports to work
> together? Any useful information on above is appreciated.
>
> THANKS!
>
>
>
>
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
Don't BCC to the list. it makes more complicated sort :-)
--
\/
<>
/\
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat Application on Port 443 or 8080?
Posted by Chris Parker <cp...@cya.ca.gov>.
>
> But for Tomcat running Stand Alone there still must be a way for SSL to
work
> w/o having to explicity say :8443 in the URL.
>
>
find this in server.xml...
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true"
useURIValidationHack="false">
<Factory
className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS"
keystoreFile="C:\WINNT\Profiles\cparker\.keystore"
keystorePass="changeit" />
</Connector>
change 'port=8443' to 'port=443'.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat Application on Port 443 or 8080?
Posted by Pae Choi <pa...@earthlink.net>.
Sure it's possible. I have not done that because I never needed
in that way.
But you certainly can do with the DNS Name Resolver and TC with
SSL 443 by configuring it. So anything with HTTPS will handled by
port listener 443 which will be your standlone TC. In that way
you do not need 8443. Form there you can do whatever you need
to do.
Pae
----- Original Message -----
From: "Qmail List" <ed...@earthlink.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, November 12, 2002 1:26 PM
Subject: Re: Tomcat Application on Port 443 or 8080?
>
> But for Tomcat running Stand Alone there still must be a way for SSL to
work
> w/o having to explicity say :8443 in the URL.
>
>
> ----- Original Message -----
> From: "Pae Choi" <pa...@earthlink.net>
> To: "Tomcat Users List" <to...@jakarta.apache.org>;
> <ma...@hotmail.com>
> Sent: Tuesday, November 12, 2002 7:17 PM
> Subject: Re: Tomcat Application on Port 443 or 8080?
>
>
> > The recommend way is either you [1]configure Apache/HTTP(S)
> > and TOMCAT(TC) with connentor or [2]make a direct conection
> > to TC.
> >
> > So the first case will be accessed as follows:
> >
> > [1] https://<domain>/<context>/<url-pattern>
> >
> > This will use the port # 443.
> >
> > And the second case will be accessed as follows:
> >
> > [2] https://<domain>:8443/<context>/<url-pattern>
> >
> > This will use the port # 8443.
> >
> > But I would not recommend the second scenario.
> >
> >
> > Pae
> >
> >
> >
> > ----- Original Message -----
> > From: "Manoj Kithany" <ma...@hotmail.com>
> > To: <ma...@hotmail.com>
> > Sent: Tuesday, November 12, 2002 12:04 PM
> > Subject: Tomcat Application on Port 443 or 8080?
> >
> >
> > > Hi Experts:
> > >
> > > My Apache+SSL is working now - thanks to you all. I checked it using
> > > https://www.kithany.com.
> > >
> > > However, I have a small Application which contains JSP+Servlets which
> > calls
> > > Oracle DB via JDBC. This application is working fine when I type
> > > http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as
> > > https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie
page
> > > does'nt shows up.
> > >
> > > I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
> > > listens to port 8080 - so how do I integrate both the ports to work
> > > together? Any useful information on above is appreciated.
> > >
> > > THANKS!
> > >
> > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > The new MSN 8: advanced junk mail protection and 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail
> > >
> > >
> > > --
> > > 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>
> >
>
>
> --
> 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>
Re: Tomcat Application on Port 443 or 8080?
Posted by Qmail List <ed...@earthlink.net>.
But for Tomcat running Stand Alone there still must be a way for SSL to work
w/o having to explicity say :8443 in the URL.
----- Original Message -----
From: "Pae Choi" <pa...@earthlink.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>;
<ma...@hotmail.com>
Sent: Tuesday, November 12, 2002 7:17 PM
Subject: Re: Tomcat Application on Port 443 or 8080?
> The recommend way is either you [1]configure Apache/HTTP(S)
> and TOMCAT(TC) with connentor or [2]make a direct conection
> to TC.
>
> So the first case will be accessed as follows:
>
> [1] https://<domain>/<context>/<url-pattern>
>
> This will use the port # 443.
>
> And the second case will be accessed as follows:
>
> [2] https://<domain>:8443/<context>/<url-pattern>
>
> This will use the port # 8443.
>
> But I would not recommend the second scenario.
>
>
> Pae
>
>
>
> ----- Original Message -----
> From: "Manoj Kithany" <ma...@hotmail.com>
> To: <ma...@hotmail.com>
> Sent: Tuesday, November 12, 2002 12:04 PM
> Subject: Tomcat Application on Port 443 or 8080?
>
>
> > Hi Experts:
> >
> > My Apache+SSL is working now - thanks to you all. I checked it using
> > https://www.kithany.com.
> >
> > However, I have a small Application which contains JSP+Servlets which
> calls
> > Oracle DB via JDBC. This application is working fine when I type
> > http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as
> > https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie page
> > does'nt shows up.
> >
> > I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
> > listens to port 8080 - so how do I integrate both the ports to work
> > together? Any useful information on above is appreciated.
> >
> > THANKS!
> >
> >
> >
> >
> >
> >
> > _________________________________________________________________
> > The new MSN 8: advanced junk mail protection and 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > --
> > 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>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat Application on Port 443 or 8080?
Posted by Pae Choi <pa...@earthlink.net>.
The recommend way is either you [1]configure Apache/HTTP(S)
and TOMCAT(TC) with connentor or [2]make a direct conection
to TC.
So the first case will be accessed as follows:
[1] https://<domain>/<context>/<url-pattern>
This will use the port # 443.
And the second case will be accessed as follows:
[2] https://<domain>:8443/<context>/<url-pattern>
This will use the port # 8443.
But I would not recommend the second scenario.
Pae
----- Original Message -----
From: "Manoj Kithany" <ma...@hotmail.com>
To: <ma...@hotmail.com>
Sent: Tuesday, November 12, 2002 12:04 PM
Subject: Tomcat Application on Port 443 or 8080?
> Hi Experts:
>
> My Apache+SSL is working now - thanks to you all. I checked it using
> https://www.kithany.com.
>
> However, I have a small Application which contains JSP+Servlets which
calls
> Oracle DB via JDBC. This application is working fine when I type
> http://www.kithany.com:8080/kithany/index.jsp but when I try HTTPS as
> https://www.kithany.com:8080/kithany/index.jsp it does'nt work - ie page
> does'nt shows up.
>
> I know that HTTPS listens to port 443 and my Application(Tomcat+JBoss)
> listens to port 8080 - so how do I integrate both the ports to work
> together? Any useful information on above is appreciated.
>
> THANKS!
>
>
>
>
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> 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>
Re: Tomcat Application on Port 443 or 8080?
Posted by Kent Perrier <kp...@ev1.net>.
On Tue, 2002-11-12 at 15:42, Milt Epstein wrote:
> Now, assuming you set up Apache+SSL for a reason, you probably want to
> use that for your https communication. That means the URL you should
> use is:
>
> https://www.kithany.com/kithany/index.jsp
>
> This will go through Apache (on port 443, the default for https). But
> for this to work, that is, to get to Tomcat, you have to make sure you
> have the proper configuration set up, mostly in terms of the connector
> directives in your Apache httpd.conf file. (You don't say what
> connector you're using, perhaps it's mod_jk.)
I have having the same issue. I have apache 1.3 working on port 80 and
on port 443 with mod_ssl. Accessing the example apps via http works
fine. From the https server I either get a 404. How do I make the
settings from the mod_jk.conf file get imported into the virtual server
that is running the SSL enabled httpd?
I am looking in the archives, but I am not finding anything very
quickly.
Kent
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tomcat Application on Port 443 or 8080?
Posted by Milt Epstein <me...@uiuc.edu>.
On Tue, 12 Nov 2002, Manoj Kithany wrote:
> Hi Experts:
>
> My Apache+SSL is working now - thanks to you all. I checked it using
> https://www.kithany.com.
>
> However, I have a small Application which contains JSP+Servlets
> which calls Oracle DB via JDBC. This application is working fine
> when I type http://www.kithany.com:8080/kithany/index.jsp but when I
> try HTTPS as https://www.kithany.com:8080/kithany/index.jsp it
> does'nt work - ie page does'nt shows up.
If you're using the default ports that are set in Tomcat's "out of the
box" server.xml, 8080 is the port Tomcat standalone uses for direct
http communication. This means that it's not going through Apache,
and it's not for https/SSL communication. That explains why the first
one works and the second one doesn't.
> I know that HTTPS listens to port 443 and my
> Application(Tomcat+JBoss) listens to port 8080 - so how do I
> integrate both the ports to work together? Any useful information on
> above is appreciated.
Well, do you want to use Tomcat integrated with Apache, or Tomcat
standalone (or both)? If you don't want to use Tomcat standalone, I
suggest you disable it's HTTP Connector -- you can do this by
commenting it out in server.xml.
Now, assuming you set up Apache+SSL for a reason, you probably want to
use that for your https communication. That means the URL you should
use is:
https://www.kithany.com/kithany/index.jsp
This will go through Apache (on port 443, the default for https). But
for this to work, that is, to get to Tomcat, you have to make sure you
have the proper configuration set up, mostly in terms of the connector
directives in your Apache httpd.conf file. (You don't say what
connector you're using, perhaps it's mod_jk.)
Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>