<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Looks like you have a typo in the vcl config. Try using php instead
    of phg :)<br>
    <br>
    <div>--- bad ---<br>
      vcl_recv</div>
    <div><br>
    </div>
    <div>
      <div> if (req.url ~ "\.phg(\?.*)?$") {</div>
      <div>  return(lookup);}</div>
    </div>
    <br>
    --- better ---<br>
    <div>vcl_recv</div>
    <div><br>
    </div>
    <div>
      <div> if (req.url ~ "\.php(\?.*)?$") {</div>
      <div>  return(lookup);}</div>
    </div>
    <br>
    <div class="moz-signature">
      <div style="width: 700px;">
        <div>
          <p style="margin: 0pt 0pt 10px 5px; color: rgb(50, 71, 127);
            font-size: 11px; font-family: Arial;">Kind regards.<br>
            <br>
            Dennis Storm<br>
            Senior Systeembeheerder</p>
        </div>
        <div>
          <hr style="color: rgb(150, 193, 61); border-style: solid;
            border-width: 1px;">
        </div>
        <div>
          <table width="100%">
            <tbody>
              <tr>
                <td width="40%">
                  <p style="font-size: 11px; font-family: Arial; color:
                    rgb(50, 71, 127); margin-bottom: 5px;"><span
                      style="color: rgb(150, 193, 61); font-weight:
                      bold; padding-right: 10px;">E</span>
                    <a class="moz-txt-link-abbreviated" href="mailto:d.storm@drecomm.nl">d.storm@drecomm.nl</a></p>
                  <p style="font-size: 11px; font-family: Arial; color:
                    rgb(50, 71, 127); margin-bottom: 5px;"><span
                      style="color: rgb(150, 193, 61); font-weight:
                      bold; padding-right: 10px;">T</span> +31 (0)50 -
                    577 58 22 (doorkiesnummer: 9701)</p>
                  <p style="font-size: 11px; font-family: Arial; color:
                    rgb(50, 71, 127);"><span style="color: rgb(150, 193,
                      61); font-weight: bold; padding-right: 10px;">M</span>
                    +31 (0)6 - 414 101 81</p>
                </td>
                <td width="60%"><img
                    src="cid:part1.02090007.01040604@drecomm.nl"
                    alt="drecomm" title="drecomm" height="70">
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <div>
          <hr style="color: rgb(150, 193, 61); border-style: dashed;
            border-width: 1px;">
        </div>
        <div style="margin-bottom: 15px;">
          <h1 style="color: rgb(150, 193, 61); text-transform:
            uppercase; margin-bottom: 10px; font-size: 12px;
            font-family: Arial; font-weight: bold;">Vestiging Groningen</h1>
          <table width="100%;">
            <tbody>
              <tr>
                <td style="font-weight: bold; width: 33%; font-size:
                  11px; font-family: Arial; color: rgb(50, 71, 127);">Hoendiep
                  208</td>
                <td style="width: 33%; font-size: 11px; font-family:
                  Arial; color: rgb(50, 71, 127);"><span style="color:
                    rgb(150, 193, 61); font-weight: bold; padding-right:
                    10px;">T</span> +31 (0)50 - 577 58 22</td>
                <td style="width: 33%; font-size: 11px; font-family:
                  Arial; color: rgb(50, 71, 127);"><span style="color:
                    rgb(150, 193, 61); font-weight: bold; padding-right:
                    10px;">Bekijk onze actuele projecten</span></td>
              </tr>
              <tr>
                <td style="font-weight: bold; width: 33%; font-size:
                  11px; font-family: Arial; color: rgb(50, 71, 127);">9745
                  ED  Groningen</td>
                <td style="width: 33%; font-size: 11px; font-family:
                  Arial; color: rgb(50, 71, 127);"><span style="color:
                    rgb(150, 193, 61); font-weight: bold; padding-right:
                    10px;">F</span> +31 (0)50 - 577 58 23</td>
                <td style="font-weight: bold; width: 33%; font-size:
                  11px; font-family: Arial; color: rgb(50, 71, 127);"><a
                    href="http://www.drecomm.nl" style="text-decoration:
                    none; color: inherit;">www.drecomm.nl</a>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <div>
          <hr style="color: rgb(150, 193, 61); border-style: solid;
            border-width: 1px;">
        </div>
      </div>
    </div>
    <br>
    On 02/22/2011 12:56 PM, Shibashish wrote:
    <blockquote
      cite="mid:AANLkTikExenMMu4npzKHRDOt_SQaWBxwb6Cppk4GccWe@mail.gmail.com"
      type="cite">
      <div>Hi All,</div>
      <div><br>
      </div>
      <div>I have a website under varnish-2.1.5-1. I have a php page
        (test.php) which is kinda static and I can cache it for some
        time (5 mins). The URLs hitting this page are like the following
        due to which the varnish cache is MISSed and the apache
        webserver is being hit. How do I do a regex to overcome this? My
        trial config is mentioned in the end....</div>
      <div><br>
      </div>
      <div>     1.00 TxURL        
         /test.php?id=219488&TabID=3&Res=2&dt=866845858823555200</div>
      <div>     1.00 TxURL        
         /test.php?id=253114&TabID=3&Res=2&dt=846642321042837100</div>
      <div>     1.00 TxURL        
         /test.php?id=104326&TabID=3&Res=2&dt=575570316149238400</div>
      <div>     1.00 TxURL        
         /test.php?id=30946&TabID=3&Res=2&dt=109061349055833870</div>
      <div>     1.00 TxURL        
         /test.php?id=109331&TabID=3&Res=2&dt=284968385895093150</div>
      <div>     1.00 TxURL        
         /test.php?id=147630&TabID=3&Res=2&dt=182582005324904030</div>
      <div>     1.00 TxURL        
         /test.php?id=226618&TabID=3&Res=2&dt=567666382104328500</div>
      <div>     1.00 TxURL        
         /test.php?id=44438&TabID=3&Res=2&dt=894643067109792400</div>
      <div>     1.00 TxURL        
         /test.php?id=219029&TabID=3&Res=2&dt=120583019713746690</div>
      <div>     1.00 TxURL        
         /test.php?id=92700&TabID=3&Res=2&dt=812672457300415500</div>
      <div>     1.00 TxURL        
         /test.php?id=244364&TabID=3&Res=2&dt=543154670573941800</div>
      <div>     1.00 TxURL        
         /test.php?id=204543&TabID=3&Res=2&dt=108553982023531000</div>
      <div>     1.00 TxURL        
         /test.php?id=155579&TabID=3&Res=2&dt=609157805933082500</div>
      <div>     1.00 TxURL        
         /test.php?id=100248&TabID=3&Res=2&dt=329215175928002100</div>
      <div>     1.00 TxURL        
         /test.php?id=155347&TabID=3&Res=2&dt=324280933690657500</div>
      <div>     1.00 TxURL        
         /test.php?id=153167&TabID=3&Res=2&dt=262366359106033180</div>
      <div>     1.00 TxURL        
         /test.php?id=175035&TabID=3&Res=2&dt=748310387497392400</div>
      <div>     1.00 TxURL        
         /test.php?id=122942&TabID=3&Res=2&dt=89373125154077630</div>
      <div>     1.00 TxURL        
         /test.php?id=157531&TabID=3&Res=2&dt=164945409132294180</div>
      <div>     1.00 TxURL        
         /test.php?id=100248&TabID=3&Res=2&dt=381019014643790400</div>
      <div>     1.00 TxURL        
         /test.php?id=103053&TabID=3&Res=2&dt=597790616600820500</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>vcl_recv</div>
      <div><br>
      </div>
      <div>
        <div> if (req.url ~ "\.phg(\?.*)?$") {</div>
        <div>  return(lookup);}</div>
      </div>
      <div><br>
      </div>
      <div>Thanks.</div>
      <div><br>
      </div>
      <div>--</div>
      <div>Shib</div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
varnish-misc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a>
<a class="moz-txt-link-freetext" href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></pre>
    </blockquote>
  </body>
</html>