Vanity Domain NamesSituationAn ISP provides customers with free web hosting by providing them with web sites rooted at SolutionCreate a Virtual Server for # 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] 07 March 2006
|
Recent Articles
Other Resources
|


