Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url rewriting #6

Open
enzo1004 opened this issue Feb 5, 2013 · 0 comments
Open

url rewriting #6

enzo1004 opened this issue Feb 5, 2013 · 0 comments

Comments

@enzo1004
Copy link

enzo1004 commented Feb 5, 2013

Hi Sir,

I'm having problem rewriting the request from varnish to query the backend.

Here is what varnish receive ==>

http://cmsfoqua:8180/vgnExtTemplating/stresource?SecurityKey=lVPNsLcf&SiteName=axabanque&ServiceName=DetailLAB&Language=fr&ResourceName=Entete&TTL=3600&CIBLAGE=

And I would like varnish to rewrite the url like this (http://cmsfoqua/xml/DetailLABEntete.xml) , then call the backend.

Here is my rule in vcl_recv subroutine:

set req.url = regsub(req.url, "^/vgnExtTemplating/stresource?SecurityKey=lVPNsLcf&SiteName=axabanque&ServiceName=(.)&Language=fr&ResourceName=(.)&TTL=(.)&CIBLAGE=(.)$", "/xml/\1\2\4.xml");

But this is not working at all,

please help!!

Regards,
Enzo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant