2 messages in ru.sysoev.nginxupstream hash on portion of URL
FromSent OnAttachments
Scott RoystonMay 30, 2008 7:56 am 
Evan MillerJun 7, 2008 1:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:upstream hash on portion of URLActions...
From:Scott Royston (scot@public.gmane.org)
Date:May 30, 2008 7:56:52 am
List:ru.sysoev.nginx

I'd like to use the Upstream Hash Module, but have the hash be based on just a portion of the URL.

For example, I have urls of the form:

http://server/foo/hash_part1/hash_part2/remainder/of/url/...

and I'd like the hash to be based on 'hash_part1' and 'hash_part2'.

Looking at the module doc, it takes a variable to do the hash on. Is there any way to set a variable based on a regex expression? Or is there another easy way to do this?

Thanks.