Cookie issue

Tollef Fog Heen tfheen at linpro.no
Mon Oct 6 09:30:02 CEST 2008


]] Morten Bekkelund 

| Tollef Fog Heen wrote:
|
| > if (req.url ~ "^/admin") {
| >    pass;
| > }
| >
| > in vcl_recv, so I presume that's not the problem you are running into?
|
| Well, I've tried that. That passes the single request to ^/admin, but
| does a lookup on every other request since the stuff under admin uses
| a lot of stuff in other paths. So it's a bit tricky :)

>From the sound of it, it sounds like you are doing something very wrong
here; why do you want to do pass on other bits than the page itself?  I
presume any other content would be images, CSS and so on?  What is the
problem you are trying to solve?

If you really want to go your route, you could do something like setting
a cookie on /admin and then checking for that in vcl_recv and if so
doing pass.  It sounds completely wrong and quite error-prone to me,
though.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list