Vanity Domain NamesSituationAn ISP provides customers with free web hosting by providing them with web sites rooted at SolutionCreate a Virtual Server for home.isp.com and configure the home directories functionality to provide web sites rooted at # Turn www.username.isp.com into home.isp.com/~username
match IN:Host into $ with ^www\.([^\.]+)\.isp\.com
if matched then
set IN:Host = home.isp.com
set URL = /~$1%{URL}
endif
# End rule for home directories ExplanationThe request rewriter executes the script for each request which is processed by the virtual server created above. For each request, the regular expression matching hostnames of the form
Content Manager
[Administrator] 16 December 2005
|
Recent Articles
Other Resources
|


