[f-nsp] Rewrites again

Mike Lott lists.accounts at gmail.com
Thu Mar 20 12:17:03 EDT 2008


On 20 Mar 2008, at 16:04, Mike Lott wrote:

> Hi list
>
> Bit stuck on this.
>
> I'd like to use a csw-rule and policy to do two things for one VIP:
>
> 1. rewrite 443 requests to 80
> 2. rewrite any request to a URL to the root of the namespace E.g. http://www.server.com/page1/index.html 
>  rewritten to http://www.server.com/
>
> Any help would be great thanks,
>
> Mike

Right, I figured out the 443 rewrite bit with this:

csw-rule "force_80" header "host" equals "www.server.com"
!
!
!
csw-policy "force_80"
match "force_80" redirect "www.server.com" "*"

and applying it to the virtual server with:

port ssl csw-policy "force_80"
port ssl csw

Now, for part 2...

Mike



More information about the foundry-nsp mailing list