<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: [Java] URL Rewriting on Tomcat (or any other servlet container)</title>
	<atom:link href="https://codethink.no-ip.org/archives/654/feed" rel="self" type="application/rss+xml" />
	<link>https://codethink.no-ip.org/archives/654</link>
	<description>A blog about coding, life, and other arbitrary topics</description>
	<lastBuildDate>Fri, 31 Jan 2020 05:12:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.29</generator>
	<item>
		<title>By: Shakeel</title>
		<link>https://codethink.no-ip.org/archives/654#comment-34915</link>
		<dc:creator><![CDATA[Shakeel]]></dc:creator>
		<pubDate>Thu, 17 Jan 2013 16:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://codethink.no-ip.org/wordpress/?p=654#comment-34915</guid>
		<description><![CDATA[How can I see this in action?  Filter seems to be deployed properly but I don&#039;t know if it is working.  Where can I see that?]]></description>
		<content:encoded><![CDATA[<p>How can I see this in action?  Filter seems to be deployed properly but I don&#8217;t know if it is working.  Where can I see that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyrus</title>
		<link>https://codethink.no-ip.org/archives/654#comment-26311</link>
		<dc:creator><![CDATA[cyrus]]></dc:creator>
		<pubDate>Fri, 16 Nov 2012 12:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://codethink.no-ip.org/wordpress/?p=654#comment-26311</guid>
		<description><![CDATA[Hi, 

I&#039;m a newbie to tomcat. I&#039;ve installed tomcat on my unix system using the tar.gz distribution.  I want to redirect request to one(let&#039;s say XYZ) of my   webapis  to other(let&#039;s say ABC).  So the request http://localhost:8080/XYZ/select?a=b should get redirected to  http://localhost:8080/ABC/select?a=b.
I placed the urlrewrite-4.0.0.jar inside  pathToTomcatExtractionFolder/lib folder

I edited the web.xml file present inside pathToTomcatExtractionFolder/conf/web.xml and added :

            UrlRewriteFilter
            org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
            
                logLevel
                WARN
            


            UrlRewriteFilter
            /*
 


I&#039;ve placed urlrewrite.xml inside pathToTomcatExtractionFolder/conf/. and defined this rule inside it:
   
 
        /XYZ/select?(.*)
        /ABC/select?$1
  

After this I restarted the tomcat but even then  when I call http://localhost:8080/XYZ/select?a=b in my browser, it&#039;s not getting redirected.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I&#8217;m a newbie to tomcat. I&#8217;ve installed tomcat on my unix system using the tar.gz distribution.  I want to redirect request to one(let&#8217;s say XYZ) of my   webapis  to other(let&#8217;s say ABC).  So the request <a href="http://localhost:8080/XYZ/select?a=b" rel="nofollow">http://localhost:8080/XYZ/select?a=b</a> should get redirected to  <a href="http://localhost:8080/ABC/select?a=b" rel="nofollow">http://localhost:8080/ABC/select?a=b</a>.<br />
I placed the urlrewrite-4.0.0.jar inside  pathToTomcatExtractionFolder/lib folder</p>
<p>I edited the web.xml file present inside pathToTomcatExtractionFolder/conf/web.xml and added :</p>
<p>            UrlRewriteFilter<br />
            org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</p>
<p>                logLevel<br />
                WARN</p>
<p>            UrlRewriteFilter<br />
            /*</p>
<p>I&#8217;ve placed urlrewrite.xml inside pathToTomcatExtractionFolder/conf/. and defined this rule inside it:</p>
<p>        /XYZ/select?(.*)<br />
        /ABC/select?$1</p>
<p>After this I restarted the tomcat but even then  when I call <a href="http://localhost:8080/XYZ/select?a=b" rel="nofollow">http://localhost:8080/XYZ/select?a=b</a> in my browser, it&#8217;s not getting redirected.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernard</title>
		<link>https://codethink.no-ip.org/archives/654#comment-9623</link>
		<dc:creator><![CDATA[Bernard]]></dc:creator>
		<pubDate>Fri, 16 Dec 2011 12:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://codethink.no-ip.org/wordpress/?p=654#comment-9623</guid>
		<description><![CDATA[Hi,

I am currently facing a url issue with a web application that I have installed on a server on my LAN.

The LAN is connected to the internet through a modem / router with a dynamic IP address. In order to access the web application from outside the LAN, I have configured a no-ip account and linked the no-ip dns to the server running the web application.

I can now access the application from a remote computer, but some functionalities do not work. In some cases, the application launches a new window and the url in that case has &quot;192.168.1.4:8082&quot; as hostname. This is the local IP address of the server on the LAN, which is not known outside of the LAN. In order to work, it should be my no-ip dns.

On the forum of the web application I have been advised to use url rewriting to solve this problem, but I am not sure if it would work as I don&#039;t even reach the web server. Could you advise me on this?

Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am currently facing a url issue with a web application that I have installed on a server on my LAN.</p>
<p>The LAN is connected to the internet through a modem / router with a dynamic IP address. In order to access the web application from outside the LAN, I have configured a no-ip account and linked the no-ip dns to the server running the web application.</p>
<p>I can now access the application from a remote computer, but some functionalities do not work. In some cases, the application launches a new window and the url in that case has &#8220;192.168.1.4:8082&#8243; as hostname. This is the local IP address of the server on the LAN, which is not known outside of the LAN. In order to work, it should be my no-ip dns.</p>
<p>On the forum of the web application I have been advised to use url rewriting to solve this problem, but I am not sure if it would work as I don&#8217;t even reach the web server. Could you advise me on this?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
