AS7-1414
jean-frederic clere
jfclere at gmail.com
Tue Oct 4 15:27:17 UTC 2011
Hi,
There are several ways to process:
+++ <rewrite pattern="^/helloworld(.*)"
substitution="/helloworld/test.jsp" flags="L" />
<rewrite pattern="^/hellomonde(.*)"
substitution="/hellomonde/test.jsp" flags="L">
<condition test="%{HTTPS}" pattern="off" flags="NC"/>
<condition test="%{USER}" pattern="toto" flags="NC"/>
</rewrite>
+++
Creating resources rewrite=rule0, rewrite=rule1 and subresources (for
rewrite=rule1) condition=condition0, condition=condition1.
the attribute can be changed by things like:
+++
./rewrite=rule1:condition=condition1:write-attribute(name=test,
value=%{HTTPS})
+++
but remove like
./ewrite=rule1:condition=condition0:remove
brings weird situation where it starts to be hard to see what is managed.
Should we go for more operations like:
:modify-rewrite(index=0,pattern=x,substitutiuon=y,flags=z)
or
:modify-rewrite-condition(rewrite=0,condition=0,test=x,pattern=y,flags=z)
Comments?
Cheers
Jean-Frederic
More information about the rhq-devel
mailing list