In message <[EMAIL PROTECTED]>, Skye Poier Nott writes
:

>Oh I see, right, it matches against the whole concatenated hash string.

Yes.

>Why is it that this purges all files from w0011.example.com
>
>       purge.hash w0011.*#.*

Because the last ".*" matches nothing, and you havn't tied it to the
front of the hash string with a "^"

>But this does nothing?
>
>       purge.hash w0011.*#.*#

Because the default vcl_hash says:

    sub vcl_hash {
        set req.hash += req.url;
        if (req.http.host) {
            set req.hash += req.http.host;
        } else {
            set req.hash += server.ip;
        }
        hash;
    }

You are trying to purge all urls that match "w0011"

>Flipping the #'s around works:
>
>       purge.hash #w0011.*#.*

Yes, because now you match the '#' after the url, the hosts that
are named w0011, the '#' after the hostname and nothing with 
the .* at the end.

The correct way to purge everything from w0011 would be:

        purge.hash #w0011.*#

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to