<p>easier than NameVirtualHost:  VirtualDocumentRoot<br>
eg:<br>
#dynamic virtual hosts, see <a href="http://httpd.apache.org/docs-2.0/vhosts/mass.html">http://httpd.apache.org/docs-2.0/vhosts/mass.html</a><br>
#                     and <a href="http://httpd.apache.org/docs-2.0/mod/mod_vhost_alias.html">http://httpd.apache.org/docs-2.0/mod/mod_vhost_alias.html</a><br>
#include the server name in the filenames used to satisfy requests<br>
VirtualDocumentRoot /web/%-2.0.%-1/pub</p>