<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div class="edit-comment-hide">
                      <div class="js-comment-body comment-body markdown-body markdown-format" data-body-version="c3836f1e3543a7af2ac3eac98a3c221f"><div class="edit-comment-hide">
                      <div class="js-comment-body comment-body markdown-body markdown-format" data-body-version="c3836f1e3543a7af2ac3eac98a3c221f">
                          <div>Hi Sir,</div><div><br></div>

<div>I'm having problem rewriting the request from varnish to query the backend.</div><div><br></div>

<div>Here is what varnish receive ==> <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div>

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

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

<div>Here is my rule in vcl_recv subroutine:</div><div><br></div><div>set req.url = regsub(req.url, "^/vgnExtTemplating/stresource.<em>([&?]SecurityKey=([a-zA-Z0-9]</em>)|[&?]SiteName=([a-zA-Z]<em>)|[&?]ServiceName=([a-zA-Z]</em>)|[&?]Language=([a-zA-Z]<em>)|[&?]ResourceName=([a-zA-Z]</em>)|[&?]TTL=([0-9]<em>)|[&?]CIBLAGE=([a-zA-Z]</em>))*", "/xml/\1\2\4.xml");</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: italic;"><br></div>

<div>Here is actually what the backend get : /xml/.xml</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Please, Help!!!!</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div>Regards,<br>
</div>
                      </div>
                    </div></div>
                    </div><div> </div><div><div><div><div><font color="#7f003f"><b><i>Lenny   </i><i>BESSAY </i></b></font><font color="#7f003f"><font face="comic sans ms"><br></font></font></div><div> </div><div><font color="#7f003f"><i>tel:0665454628</i></font></div></div></div></div></div></body></html>