Justin Sheehy justin at iago.org
Thu Sep 24 12:34:46 EDT 2009

Hi Benoit,

One of the TODO items for Webmachine right now is to improve
dispatching a bit, including host-based dispatch and also probably
incorporating Paul's specificity-based dispatch ordering somehow.

The current idea for host-based dispatching is that you could make a
dispatch rule of the form:

{host, pathspec, resource, args}

instead of the usual

{pathspec, resource, args}

and that dispatch rule would only match if the Host header matches the
host term in the rule.  The existing 3-element dispatch rules would
match any Host header, thus maintaining backward compatibility.

Hopefully we'll get to this soon.  In the meantime, of course, patches
are always welcomed.


More information about the webmachine mailing list