Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Advanced Virtual Hosting: MD5 support #747

Borkason opened this Issue Mar 24, 2013 · 2 comments


None yet
2 participants

Borkason commented Mar 24, 2013

Original author: alobbs (October 23, 2010 15:37:25)

Here is an interesting idea sent to the mailing list:

Currently, we use the same method as shown in the documentation - ie
/sites/e/x/example.com. This is fine for a few 10s of thousands of sites,
but not very efficient once you get beyond 100,000. A better solution is
what we use on our email clusters, which have many more users (around
1,000,000 in Italy). This uses the last 3 characters of the MD5 checksum of
the username, like this: /email/5ab/example.com. This produces a more even
distribution and, by being wide and shallow, allows for a much more
efficient stat cache.


Original issue: http://code.google.com/p/cherokee/issues/detail?id=1033


Borkason commented Mar 24, 2013

From Kissa...@gmail.com on October 27, 2010 07:59:32
Manually finding it would become more of a problem than using chars from the actual domain / customer / subfolder name.

This may or may not distribute folders more (or less) evenly into the 3-char-parent folders.

What’s this enhancement pointed towards?
Isn’t that the hosters decision how he structures his folders?


Borkason commented Mar 24, 2013

From michael....@gmail.com on November 10, 2010 12:54:48
@kissaki0: Understanding this as an enhancement people are still free to use folder structure they like.
Advanced Virtual Hosting gives you possibility to setup virtual docroots.
You can use several placeholders for common things like for example domain name, tld, ...
All I can say is
+1 I thumbup on this

@skinkie skinkie added a commit that referenced this issue Jan 10, 2014

@skinkie skinkie Implement ${domain_md5} as requested in issue #747
To get the last 3 bytes slicing can be used.

@ghost ghost assigned skinkie Jan 10, 2014

@skinkie skinkie closed this in #1102 Feb 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment