<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Rules for Url Rewrite Filter</title>
	<link>http://blog.erikisaksson.com/2004/07/27/1090952764000/</link>
	<description>Personal weblog of Erik Isaksson: IT, business, life, misc. thoughts</description>
	<pubDate>Wed, 10 Mar 2010 00:04:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Erik</title>
		<link>http://blog.erikisaksson.com/2004/07/27/1090952764000/#comment-100</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Thu, 05 Feb 2009 08:51:17 +0000</pubDate>
		<guid>http://blog.erikisaksson.com/2004/07/27/1090952764000/#comment-100</guid>
		<description>Thanks for your comment! (Hmm, perhaps I ought to reconfigure WordPress to allow at least some HTML in comments. As I recall it should be possible somehow.)

I'd assume that the lines in your UrlRewriteFilter configuration represent, in order: name, from, condition, condition, set, to. Anyone reading should probably be able to take it from there.

Oh, and UrlRewriteFilter is a great project and I'm glad to see it gaining more users as well as being developed further.</description>
		<content:encoded><![CDATA[<p>Thanks for your comment! (Hmm, perhaps I ought to reconfigure WordPress to allow at least some HTML in comments. As I recall it should be possible somehow.)</p>
<p>I&#8217;d assume that the lines in your UrlRewriteFilter configuration represent, in order: name, from, condition, condition, set, to. Anyone reading should probably be able to take it from there.</p>
<p>Oh, and UrlRewriteFilter is a great project and I&#8217;m glad to see it gaining more users as well as being developed further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerardo Costilla</title>
		<link>http://blog.erikisaksson.com/2004/07/27/1090952764000/#comment-99</link>
		<dc:creator>Gerardo Costilla</dc:creator>
		<pubDate>Thu, 05 Feb 2009 01:58:24 +0000</pubDate>
		<guid>http://blog.erikisaksson.com/2004/07/27/1090952764000/#comment-99</guid>
		<description>Ups, I see that HTML was removed... sorry.</description>
		<content:encoded><![CDATA[<p>Ups, I see that HTML was removed&#8230; sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerardo Costilla</title>
		<link>http://blog.erikisaksson.com/2004/07/27/1090952764000/#comment-98</link>
		<dc:creator>Gerardo Costilla</dc:creator>
		<pubDate>Thu, 05 Feb 2009 01:56:58 +0000</pubDate>
		<guid>http://blog.erikisaksson.com/2004/07/27/1090952764000/#comment-98</guid>
		<description>Hey Erik. Thanks for posting your ideas, they have been extremely helpful. I'm removing Apache and moving the rewrite rules to UrlRewriteFilter. Your idea is perfect for disabling the TRACE HTTP method on a specific port number, as this directives do:

RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F] 

This is the rule that I created


    	disable trace for port {@ssl_port@}
    	
    	
    	
    	^.*$
        9083
    	TRACE
    	403
    	/SendError.jsp


and well, the jsp is identical to your suggestion, it works perfectly.


Finally, this is the response that I got:
HTTP/1.1 403 Forbidden
Server: WebSphere Application Server/5.1
Set-Cookie: JSESSIONID=0000ySP8BRM8Cdsom5UGPesXIM0:-1;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en-US
Connection: close

It was smart. You're great. Cheers from San Francisco, CA.

Gerardo</description>
		<content:encoded><![CDATA[<p>Hey Erik. Thanks for posting your ideas, they have been extremely helpful. I&#8217;m removing Apache and moving the rewrite rules to UrlRewriteFilter. Your idea is perfect for disabling the TRACE HTTP method on a specific port number, as this directives do:</p>
<p>RewriteCond %{REQUEST_METHOD} ^TRACE<br />
RewriteRule .* - [F] </p>
<p>This is the rule that I created</p>
<p>    	disable trace for port {@ssl_port@}</p>
<p>    	^.*$<br />
        9083<br />
    	TRACE<br />
    	403<br />
    	/SendError.jsp</p>
<p>and well, the jsp is identical to your suggestion, it works perfectly.</p>
<p>Finally, this is the response that I got:<br />
HTTP/1.1 403 Forbidden<br />
Server: WebSphere Application Server/5.1<br />
Set-Cookie: JSESSIONID=0000ySP8BRM8Cdsom5UGPesXIM0:-1;Path=/<br />
Cache-Control: no-cache=&#8221;set-cookie,set-cookie2&#8243;<br />
Expires: Thu, 01 Dec 1994 16:00:00 GMT<br />
Content-Type: text/html;charset=ISO-8859-1<br />
Content-Language: en-US<br />
Connection: close</p>
<p>It was smart. You&#8217;re great. Cheers from San Francisco, CA.</p>
<p>Gerardo</p>
]]></content:encoded>
	</item>
</channel>
</rss>
