Hi all, My name is Jake. I'm a newbie to tomcat and I'm working on setting
up the rewrite valve. I've configured it host specific rather than global.
I have put my rewrite.config file inside of my Catalina base for the host
name and I know I'm reading the file at the very least because if i fill it
Thank you for the information and fix, Mark.
On Fri, Feb 7, 2020 at 12:31 AM Mark Thomas wrote:
> On 06/02/2020 23:00, Mark Thomas wrote:
> > The issue appears to be that the following RewriteCond does not match
> > when the request is served over HTTP/2 (with TLS) but it does if the
> > request
> Mark
>
>
>
> On 06/02/2020 20:42, Pierre Chiu wrote:
>> I just want to concur I have the same issue.
>> Removing that one line upgradeprotocol
>> and rewrite works again.
>>
>>
>>
>> On Thu, Feb 6, 2020 at 3:28 PM Hua Zhang wrote:
>>
t; Removing that one line upgradeprotocol
> and rewrite works again.
>
>
>
> On Thu, Feb 6, 2020 at 3:28 PM Hua Zhang wrote:
>
>> Nope, I also tested it with NIO instead of APR, same issues happen.
>> RewriteValve does not function as expected. Besides it, there a
I just want to concur I have the same issue.
Removing that one line upgradeprotocol
and rewrite works again.
On Thu, Feb 6, 2020 at 3:28 PM Hua Zhang wrote:
> Nope, I also tested it with NIO instead of APR, same issues happen.
> RewriteValve does not function as expected. Besides it,
Nope, I also tested it with NIO instead of APR, same issues happen.
RewriteValve does not function as expected. Besides it, there are also two
https-443-exec executed by one request.
There is definitely something wrong with Http2Protocol. And it results in
this case a problem in RewriteValve
I observe now at least two
> weird situations.
>
> 1) As mentioned before, RewriteValve does not work as expected.
> 2) Besides it, I observed that serviet behaviors weird. According to the
> log file it seems that a servlet is sometimes called *twice by one
> request*.
>
&
Thank you for the response. I am finally able to confirm the issue.
When I put the following line in comment, everything works fine. I mean as
expected.
**
If the above line UpgradeProtocol is activated, I observe now at least two
weird situations.
1) As mentioned before, RewriteValve does
ue I found by using RewriteValve
> on tomcat 9.30
>
> The rewrite.config is very simple:
>
> /RewriteCond %{HTTP_HOST} =youkoop.com <http://youkoop.com>
> RewriteRule ^.*$ https://www.youkoop.com [R=301,L]
> /
>
> All I want is just redirect a naked root domain to a www do
gt; >
> > Hereby I have a question about an issue I found by using RewriteValve
> > on tomcat 9.30
> >
> > The rewrite.config is very simple:
> >
> > /RewriteCond %{HTTP_HOST} =youkoop.com <http://youkoop.com>
> > RewriteRule ^.*$ https://www.youkoop.com
On 04.02.20 20:31, Hua Zhang wrote:
> Best tomcat team,
>
> Hereby I have a question about an issue I found by using RewriteValve
> on tomcat 9.30
>
> The rewrite.config is very simple:
>
> /RewriteCond %{HTTP_HOST} =youkoop.com <http://youkoop.com>
> RewriteRul
Best tomcat team,
Hereby I have a question about an issue I found by using RewriteValve on
tomcat 9.30
The rewrite.config is very simple:
*RewriteCond %{HTTP_HOST} =youkoop.com <http://youkoop.com>RewriteRule ^.*$
https://www.youkoop.com <https://www.youkoop.com> [R=301,L]*
A
in our solution, there is an
> nginx proxy in front of tomcat that replace all semicolon of the url
> with an unique sequence of character and in the RewriteValve there is
> the opposite operation).
That is as good as anything I can come up with off the top of my head.
> About all the
On Mon, Sep 16, 2019 at 1:49 PM Mark Thomas wrote:
>
> > Alain,
> > On 9/13/19 13:37, Alain Sellerin wrote:
> >>>> Tomcat version: 8.5 OS: Win10, Linux
>
>
>
> >>>> I'm facing an issue with an application that is using path
> >&g
> Alain,
> On 9/13/19 13:37, Alain Sellerin wrote:
>>>> Tomcat version: 8.5 OS: Win10, Linux
>>>> I'm facing an issue with an application that is using path
>>>> parameters in conjunction with a RewriteValve.
>>>> If the request
m facing an issue with an application that is using path
> > parameters in conjunction with a RewriteValve.
> >
> > I narrowed down the problem by using the sample application
> > available here:
> > https://tomcat.apache.org/tomcat-8.5-doc/appdev/sample/
> >
> > C
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Alain,
On 9/13/19 13:37, Alain Sellerin wrote:
> Tomcat version: 8.5 OS: Win10, Linux
>
> Hi,
>
> I'm facing an issue with an application that is using path
> parameters in conjunction with a RewriteValve.
>
> I
Tomcat version: 8.5
OS: Win10, Linux
Hi,
I'm facing an issue with an application that is using path parameters
in conjunction with a RewriteValve.
I narrowed down the problem by using the sample application available
here: https://tomcat.apache.org/tomcat-8.5-doc/appdev/sample/
Co
I am trying to convert some url rewriting rules from tuckey rewrite
filter to tomcat's rewrite valve.
In my context.xml I have
In my WEB-INF directory I have a rewrite.config file with a couple of rules.
In tomcat's logging.properties I have
org.apache.catalina.core.ContainerBase.[Catalina].[
Hi.
I use Tomcat 8.5.23. My context.xml looks like this:
className="org.apache.catalina.valves.rewrite.RewriteValve" />
WEB-INF/rewrite.config
My rewrite.config looks like this:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Rewrite
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Mark,
On 8/30/17 5:03 PM, Mark Thomas wrote:
> On 30/08/17 21:46, Dan Rabe wrote:
>> I’m using Tomcat 8.5.20, trying to use the rewrite valve to
>> rewrite a root-level URL (/foo) to a URL in my webapp
>> (/mywebapp/bar).
>>
>> I added the rewrite
On 30.08.2017 22:46, Dan Rabe wrote:
I’m using Tomcat 8.5.20, trying to use the rewrite valve to rewrite a
root-level URL (/foo) to a URL in my webapp (/mywebapp/bar).
I added the rewrite valve to my server.xml, and I put my rewrite.config in
conf/Catalina/localhost.
This all works great IF I
On 30/08/17 21:46, Dan Rabe wrote:
> I’m using Tomcat 8.5.20, trying to use the rewrite valve to rewrite a
> root-level URL (/foo) to a URL in my webapp (/mywebapp/bar).
>
> I added the rewrite valve to my server.xml, and I put my rewrite.config in
> conf/Catalina/localhost.
>
> This all works
I’m using Tomcat 8.5.20, trying to use the rewrite valve to rewrite a
root-level URL (/foo) to a URL in my webapp (/mywebapp/bar).
I added the rewrite valve to my server.xml, and I put my rewrite.config in
conf/Catalina/localhost.
This all works great IF I create an empty “ROOT” directory in we
06/17 10:55, Jérémie Barthés wrote:
Hi,
I have an issue between org.apache.catalina.valves.rewrite.RewriteValve
and org.apache.catalina.servlets.DefaultServlets
If my request is forwarded by the RewriteValve and then pass into
doDirectoryRedirect in DefaultServlets to be redirected. The hidden
rewritten URI is
mas a écrit :
>> On 26/06/17 10:55, Jérémie Barthés wrote:
>>> Hi,
>>>
>>> I have an issue between org.apache.catalina.valves.rewrite.RewriteValve
>>> and org.apache.catalina.servlets.DefaultServlets
>>>
>>> If my request is forwarded by the
rémie Barthés wrote:
Hi,
I have an issue between org.apache.catalina.valves.rewrite.RewriteValve
and org.apache.catalina.servlets.DefaultServlets
If my request is forwarded by the RewriteValve and then pass into
doDirectoryRedirect in DefaultServlets to be redirected. The hidden
rewritten URI is disp
On 26/06/17 10:55, Jérémie Barthés wrote:
> Hi,
>
> I have an issue between org.apache.catalina.valves.rewrite.RewriteValve
> and org.apache.catalina.servlets.DefaultServlets
>
> If my request is forwarded by the RewriteValve and then pass into
> doDirectoryRedirect in
Hi,
I have an issue between org.apache.catalina.valves.rewrite.RewriteValve
and org.apache.catalina.servlets.DefaultServlets
If my request is forwarded by the RewriteValve and then pass into
doDirectoryRedirect in DefaultServlets to be redirected. The hidden
rewritten URI is displayed in the
May you please test RewriteValve with any tomcat after version 8 with
following conditions :
add RewriteValve in conf/server.xml
add rewriteRule in conf/Catalina/localhost/rewrite.config
RewriteRule ^/IWantThisVisible/(.*)$ /examples/$1/
start tomcat
go to following URL (any internet
RewriteRule ^/visibleURL/(.*)$ /examples/$1/
(missing space between ^/visibleURL/(.*)$ and /examples/$1/)
Le 20/06/2017 à 18:31, Jérémie Barthés a écrit :
please test what i put in my mail :
install a brand new tomcat 9 from archive (last version)
put a RewriteValve in server.xml
in the
please test what i put in my mail :
install a brand new tomcat 9 from archive (last version)
put a RewriteValve in server.xml
in the file /conf/Catalina/localhost/rewrite.config add
RewriteRule ^/visibleURL/(.*)$/examples/$1/
now start tomcat and go to /visibleURL/servlets/
then go to
ed" and "page displayed"? It sounds like
you want the URL to look exactly as it does look.
- -chris
> Le 20/06/2017 à 15:26, Jérémie Barthés a écrit :
>> Hi,
>>
>> I have some issues with my brand new tomcat 9.0.0.M21
>>
>> I just unzipped *wi
://192.168.1.1:8080/examples/servlets/
i don't want http://192.168.1.1:8080/examples/servlets/ to be displayed !
Le 20/06/2017 à 15:26, Jérémie Barthés a écrit :
Hi,
I have some issues with my brand new tomcat 9.0.0.M21
I just unzipped *windows-64 core*
Then i added the *RewriteValve *in
Hi,
I have some issues with my brand new tomcat 9.0.0.M21
I just unzipped *windows-64 core*
Then i added the *RewriteValve *in *conf/server.xml*
/ autoDeploy="true">//
// //
//className="org.apache.catalina.valves.re
Hi,
I've been struggling with this bug for a little while now and was hoping
you might provide some insight.
We're running Jenkins inside Tomcat and using the RewriteValve to rewrite
incoming URLs on / to /service/jenkins/.
We notice that for requests for /$stapler/render..., the $
Hi,
I send you the patch from 8.0.15
Tell me if it doesn't match with what you expected
Kind regards,
Jérémie
Index: RewriteValve.java
===
--- RewriteValve.java(revision 1661627)
+++ RewriteValve.java(working copy)
@@ -45,
2015-02-20 19:41 GMT+03:00 Christopher Schultz :
>
> Jérémie,
>
> On 2/20/15 4:48 AM, Jérémie Barthés wrote:
>> "instead of just a snippet of "fixed" code"
>>
>> Sorry Chris,i didn't read this.
>>
>> How do you want me to provide the patch ?
>
> Presumably, you have a copy of the source code. If yo
riginal/RewriteValve.java \
java/org/apache/catalina/valves/rewrite/RewriteValve.java \
> patch.file
- -chris
> Le 20/02/2015 10:31, Jérémie Barthés a écrit :
>> I send you the patch i did to fix my issue with the RewriteValve
>> (it was for the 8.0.15), The goal of
Le 20/02/2015 11:22, Rémy Maucherat a écrit :
2015-02-20 10:31 GMT+01:00 Jérémie Barthés :
I send you the patch i did to fix my issue with the RewriteValve (it was
for the 8.0.15),
The goal of that patch is to block the RewriteValve if a 302 automatic
folder '/' redirection o
2015-02-20 10:31 GMT+01:00 Jérémie Barthés :
> I send you the patch i did to fix my issue with the RewriteValve (it was
> for the 8.0.15),
> The goal of that patch is to block the RewriteValve if a 302 automatic
> folder '/' redirection occurs. The RewriteValve will rewrit
"instead of just a snippet of "fixed" code"
Sorry Chris,i didn't read this.
How do you want me to provide the patch ?
Jérémie
Le 20/02/2015 10:31, Jérémie Barthés a écrit :
I send you the patch i did to fix my issue with the RewriteValve (it
was for the 8.0.15),
The
I send you the patch i did to fix my issue with the RewriteValve (it was
for the 8.0.15),
The goal of that patch is to block the RewriteValve if a 302 automatic
folder '/' redirection occurs. The RewriteValve will rewrite the
redirected URL.
first step :
http://localhost:8080/my
Am 20.02.2015 08:49, schrieb Rainer Jung:
Am 19.02.2015 um 22:13 schrieb Felix Schumacher:
Am 19.02.2015 um 21:41 schrieb André Warnier:
Jérémie Barthés wrote:
...
Make a file rewrite.config in conf/Catalina/localhost/ that contains
:
RewriteRule^/mypath/(.*)$/examples/jsp/$1
copy
Am 19.02.2015 um 22:13 schrieb Felix Schumacher:
Am 19.02.2015 um 21:41 schrieb André Warnier:
Jérémie Barthés wrote:
...
Make a file rewrite.config in conf/Catalina/localhost/ that contains :
RewriteRule^/mypath/(.*)$/examples/jsp/$1
copy the line
in the conf/server.xml fil
Am 20. Februar 2015 00:43:40 MEZ, schrieb "André Warnier" :
>André Warnier wrote:
>> Felix Schumacher wrote:
>>> Am 19.02.2015 um 21:41 schrieb André Warnier:
Jérémie Barthés wrote:
...
>...
>
in the browser, you have to modify your rewrite rules, perhaps by
using a Rewr
André Warnier wrote:
Felix Schumacher wrote:
Am 19.02.2015 um 21:41 schrieb André Warnier:
Jérémie Barthés wrote:
...
...
in the browser, you have to modify your rewrite rules, perhaps by
using a RewriteCond with the -d flag, to check first if the URL
points to an existing directory, and
Felix Schumacher wrote:
Am 19.02.2015 um 21:41 schrieb André Warnier:
Jérémie Barthés wrote:
...
Make a file rewrite.config in conf/Catalina/localhost/ that contains :
RewriteRule^/mypath/(.*)$/examples/jsp/$1
copy the line
className="org.apache.catalina.valves.rewrite.Rewrit
Am 19.02.2015 um 21:41 schrieb André Warnier:
Jérémie Barthés wrote:
...
Make a file rewrite.config in conf/Catalina/localhost/ that contains :
RewriteRule^/mypath/(.*)$/examples/jsp/$1
copy the line
className="org.apache.catalina.valves.rewrite.RewriteValve" />
in the conf/s
Jérémie Barthés wrote:
...
Make a file rewrite.config in conf/Catalina/localhost/ that contains :
RewriteRule^/mypath/(.*)$/examples/jsp/$1
copy the line
className="org.apache.catalina.valves.rewrite.RewriteValve" />
in the conf/server.xml file, line 131
Since this is a Val
since you have mapped
/mypath/async to /examples/jsp/async, which is a directory. The
DefaultServlet tries to serve that "directory" and redirects the user
to the same URL with a "/" on the end.
This isn't necessarily a problem with the RewriteValve, but with a
perhaps unexpecte
15 4:54 AM, Jérémie Barthés wrote:
When an URL target a folder on the server, tomcat automaticly add a
"/" at the end of the URL if missing : myHost.com/myFolder =>
myHost.com/myFolder/ (automatic tomcat 302 redirection)
If you use a rewriteValve to forward "myHost.com/myFolder&
ot; at the end of the URL if missing : myHost.com/myFolder =>
myHost.com/myFolder/ (automatic tomcat 302 redirection)
If you use a rewriteValve to forward "myHost.com/myFolder" to
"myHost.com/rewriteTrick/myFolder", the rewriteValve will forward
simultaneous with the autom
tomcat 302 redirection)
>
> If you use a rewriteValve to forward "myHost.com/myFolder" to
> "myHost.com/rewriteTrick/myFolder", the rewriteValve will forward
> simultaneous with the automatic tomcat redirection. Then the
> client's browser will catch the rewritten
Hi Chris,
When an URL target a folder on the server, tomcat automaticly add a "/"
at the end of the URL if missing :
myHost.com/myFolder => myHost.com/myFolder/ (automatic tomcat 302
redirection)
If you use a rewriteValve to forward "myHost.com/myFolder" to
"myHo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Jérémie,
On 2/17/15 10:47 AM, Jérémie Barthés wrote:
> I don't have more to say than :
>
> "There is a bug using the RewriteValve :If you are targeting a
> folder and there is no "/" at the end of the URI,
The
Hi,
I don't have more to say than :
"There is a bug using the RewriteValve :If you are targeting a folder and there is no
"/" at the end of the URI,
the rewritten URI is visible for the client browser (302 redirection).
Example :
http://myhost.com/myFolder => http://
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Jérémie,
On 2/17/15 6:20 AM, Jérémie Barthés wrote:
> I just installed tomcat 8 and used the RewriteValve to forward some
> old URLs on my new tomcat8 webapp. I had an issue for URIs
> targeting a folder: If there is no "/" at
Hi,
I just installed tomcat 8 and used the RewriteValve to forward some old
URLs on my new tomcat8 webapp. I had an issue for URIs targeting a
folder: If there is no "/" at the end of the URI, the rewritten URI is
visible for the client browser (302 redirection).
Example :
http://
59 matches
Mail list logo