mod_vd 2.0 review
Downloadmod_vd Apache 2.0 module is similar to mod_vhost_alias, in that it maps the request host name and URI to the file system
|
|
mod_vd Apache 2.0 module is similar to mod_vhost_alias, in that it maps the request host name and URI to the file system. For example http://www.john.smith.domain.name/ might be mapped to /home/smith/john/public_html.
While the same can be achieved with mod_vhost_alias or mod_rewrite, the goal of this module is to be faster than the others modules performing similar mappings of a request to file system, by using a more rigid translation, avoiding regular expressions, and avoiding the need for any complex substitutions. On a very active server, regular expressions and complex string manipulation can impact server performance.
This module can be used in combination with static virtual hosts and other dynamic virtual host modules like mod_vhost_alias, depending on the module execution order specified in the httpd.conf.
Configuration:
VdChopPrefix number
Context: global, < VirtualHost >
Remove the leading number of domain levels from the request hostname. The default is zero (0).
VdChopSuffix number
Context: global, < VirtualHost >
Remove the trailing number of domain levels from the request hostname. The default is zero (0).
VdEnable flag
Context: global, < VirtualHost >
Turn the module on or off.
VdPathPrefix directory
Context: global, < VirtualHost >
This is an absolute or server root relative directory path, to which will be appended the translated hostname, suffix, and URI. The default is the global or static virtual host document root.
VdPathSuffix directory
Context: global, < VirtualHost >
This is a path suffix that will be appended to the prefix and the translated hostname. Once the suffix is appended, the requested URI is then appended. The default is the empty string, "".
Requirements:
Apache 2.0.
What's New in This Release:
Initial Apache 2.0 release.
mod_vd 2.0 keywords