In the Butterthlies business, sad to relate, the salespeople have
been abusing their powers and perquisites, and it has been decided to
teach them a lesson by hiding their beloved
secrets file and sending them to the ordinary
customers' site when they try to access it. How humiliating!
Easily done, though.
Edit httpd.conf :
...
<VirtualHost sales.butterthlies.com>
ServerAdmin sales_mgr@butterthlies.com
Redirect /secrets http://www.butterthlies.com
DocumentRoot /usr/www/site.alias/htdocs/salesmen
...
The exact placing of the Redirect doesn't
matter, as long as it is somewhere in the
<VirtualHost> section. If you now access
http://sales.butterthlies.com/secrets, you are
shunted straight to the customers' index at
http://www.butterthlies.com/.