You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vasile GABURICI <ga...@cs.pub.ro> on 2000/05/01 05:57:58 UTC
mod_ssl problems
Hi all,
While trying to use Tomcat 3.1beta 1 with apache 1.3.12 + mod_ssl
2.6.2 I have encountered the following problem: Accessing
https://localhost/examples works fine, but when I try
https://localhost/examples/servles I get the following error (400):
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead
use the HTTPS scheme to access this URL, please.
...
I guess that jserv module is not correctly forwarding the request,
as it should keep the port and protocol. It seems to me that bug #212 is
about this.
Question: Some guys wrote in the FAQ-O-MATIC that mod_ssl worked
for them. I'd like to know how...
Cheers,
Vasile
Re: mod_ssl problems
Posted by Phil Welch <Ph...@worldnet.att.net>.
Jan,
EXCELLENT; EXCELLENT; EXCELLENT!!!!
Best Regards and Thanks!
Phil Welch
----- Original Message -----
From: "Jan Labanowski" <jk...@osc.edu>
To: <to...@jakarta.apache.org>
Cc: "Jan Labanowski" <jk...@osc.edu>
Sent: Monday, May 01, 2000 12:04 AM
Subject: Re: mod_ssl problems
>
>
>
> On Mon, 1 May 2000, Vasile GABURICI wrote:
>
> >
> >
> > Hi all,
> >
> > While trying to use Tomcat 3.1beta 1 with apache 1.3.12 +
mod_ssl
> > 2.6.2 I have encountered the following problem: Accessing
> > https://localhost/examples works fine, but when I try
> > https://localhost/examples/servles I get the following error (400):
>
> Try my stuff...
> http://www.ccl.net/cca/software/UNIX/apache/index.shtml
>
>
> you mean
> https://localhost/examples/servlets/ ?
>
> Works for me (still... {;-)}).
>
> Jan
> jkl@osc.edu
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
Re: mod_ssl problems
Posted by Vasile GABURICI <ga...@cs.pub.ro>.
On Mon, 1 May 2000, Jan Labanowski wrote:
>
>
>
> On Mon, 1 May 2000, Vasile GABURICI wrote:
>
> >
> >
> > Hi all,
> >
> > While trying to use Tomcat 3.1beta 1 with apache 1.3.12 + mod_ssl
> > 2.6.2 I have encountered the following problem: Accessing
> > https://localhost/examples works fine, but when I try
> > https://localhost/examples/servles I get the following error (400):
>
> Try my stuff...
> http://www.ccl.net/cca/software/UNIX/apache/index.shtml
Thanks a lot. BTW, I'd like to see a links page on the jakarta
site pointing to such resources...
>
> you mean
> https://localhost/examples/servlets/ ?
Of course; it was a typo in my mail...
> Works for me (still... {;-)}).
>
> Jan
> jkl@osc.edu
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>
Re: mod_ssl problems
Posted by Vasile GABURICI <ga...@cs.pub.ro>.
I'm not sure why it doesn't work, but I have a fix. Adding the
following lines to <VirtualHost _default_:443> section cures the HTTPS
rewrite problem.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/examples/servlets$ /examples/servlets/ [R]
RewriteRule ^/examples/jsp$ /examples/jsp/ [R]
</IfModule>
On Mon, 1 May 2000, Jan Labanowski wrote:
> On Mon, 1 May 2000, Vasile GABURICI wrote:
>
> >
> > Hi all,
> >
> > I've managed to find a workaround for the jserv + SSL problem
> > mentioned in my previous post. It's rather trivial.
> >
> > I couldn't find out why the https://localhost/examples/servlets
> > URL doesn't work. But I've noticed in Jans' logs that he accesses the
> > servlets directly. So, I tried to hit the servlet directly and it worked:
> > https://localhost/examples/servlet/HelloWorldExample
> >
> > Finally I realized that this it was only an URL rewriting problem,
> > so I tried https://localhost/examples/servlets/index.html which also
> > worked. Following this line, https://localhost/examples/servlets/ also
> > works (note the final /). So, the workaround was trivial.
> >
> > Still, I'd like to know if the https://localhost/examples/servlets
> > (no trailing /) URL works for Jan. My apache doesn't misbehave if try
> > other https URLs that need rewriting, like https://localhost/manual, so it
> > must have something to do with the jserv thing...
>
> I added (fast und dirty...) a bullet:
> o Examples of my config files for Tomcat 3.1-beta-1 under Solaris
> to the: http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml
>
> Maybe there is a clue there...
>
> Jan
> jkl@osc.edu
>
> Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168
> Ohio Supercomputer Center | Internet: jkl@osc.edu
> 1224 Kinnear Rd, | http://www.ccl.net/chemistry.html
> Columbus, OH 43212-1163 | http://www.osc.edu/
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>
Re: mod_ssl problems
Posted by Jan Labanowski <jk...@osc.edu>.
On Mon, 1 May 2000, Vasile GABURICI wrote:
>
> Hi all,
>
> I've managed to find a workaround for the jserv + SSL problem
> mentioned in my previous post. It's rather trivial.
>
> I couldn't find out why the https://localhost/examples/servlets
> URL doesn't work. But I've noticed in Jans' logs that he accesses the
> servlets directly. So, I tried to hit the servlet directly and it worked:
> https://localhost/examples/servlet/HelloWorldExample
>
> Finally I realized that this it was only an URL rewriting problem,
> so I tried https://localhost/examples/servlets/index.html which also
> worked. Following this line, https://localhost/examples/servlets/ also
> works (note the final /). So, the workaround was trivial.
>
> Still, I'd like to know if the https://localhost/examples/servlets
> (no trailing /) URL works for Jan. My apache doesn't misbehave if try
> other https URLs that need rewriting, like https://localhost/manual, so it
> must have something to do with the jserv thing...
I added (fast und dirty...) a bullet:
o Examples of my config files for Tomcat 3.1-beta-1 under Solaris
to the: http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml
Maybe there is a clue there...
Jan
jkl@osc.edu
Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168
Ohio Supercomputer Center | Internet: jkl@osc.edu
1224 Kinnear Rd, | http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163 | http://www.osc.edu/
Re: mod_ssl problems
Posted by Vasile GABURICI <ga...@cs.pub.ro>.
Hi all,
I've managed to find a workaround for the jserv + SSL problem
mentioned in my previous post. It's rather trivial.
I couldn't find out why the https://localhost/examples/servlets
URL doesn't work. But I've noticed in Jans' logs that he accesses the
servlets directly. So, I tried to hit the servlet directly and it worked:
https://localhost/examples/servlet/HelloWorldExample
Finally I realized that this it was only an URL rewriting problem,
so I tried https://localhost/examples/servlets/index.html which also
worked. Following this line, https://localhost/examples/servlets/ also
works (note the final /). So, the workaround was trivial.
Still, I'd like to know if the https://localhost/examples/servlets
(no trailing /) URL works for Jan. My apache doesn't misbehave if try
other https URLs that need rewriting, like https://localhost/manual, so it
must have something to do with the jserv thing...
Cheers,
Vasile
On Mon, 1 May 2000, Jan Labanowski wrote:
>
>
>
> On Mon, 1 May 2000, Vasile GABURICI wrote:
>
> >
> >
> > Hi all,
> >
> > While trying to use Tomcat 3.1beta 1 with apache 1.3.12 + mod_ssl
> > 2.6.2 I have encountered the following problem: Accessing
> > https://localhost/examples works fine, but when I try
> > https://localhost/examples/servles I get the following error (400):
>
> Try my stuff...
> http://www.ccl.net/cca/software/UNIX/apache/index.shtml
>
>
> you mean
> https://localhost/examples/servlets/ ?
>
> Works for me (still... {;-)}).
>
> Jan
> jkl@osc.edu
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>
Re: mod_ssl problems
Posted by Jan Labanowski <jk...@osc.edu>.
On Mon, 1 May 2000, Vasile GABURICI wrote:
>
>
> Hi all,
>
> While trying to use Tomcat 3.1beta 1 with apache 1.3.12 + mod_ssl
> 2.6.2 I have encountered the following problem: Accessing
> https://localhost/examples works fine, but when I try
> https://localhost/examples/servles I get the following error (400):
Try my stuff...
http://www.ccl.net/cca/software/UNIX/apache/index.shtml
you mean
https://localhost/examples/servlets/ ?
Works for me (still... {;-)}).
Jan
jkl@osc.edu