Virtual Hosts very useful

I’ve been using the apache VirtualHost feature to allow for some experimentation without having to worry about breaking parts of my website that actually work. The key here is that Joker.com now allows the use of wildcard * in the DNS setting, so any *.drewk.net gets sent to my webhost. It used to be that I had to add each blog.drewk, test.drewk, dx.drewk to everything I did, and the updates took as long as 24 hours. Now, I just have the wildcard, so I can add any virtual host name I like and go.

< VirtualHost *:80 >
DocumentRoot /xxx/yyy/zzz/nnn/drewk
ServerName 192.168.8.123
ServerSignature off
DirectoryIndex index.html index.htm index.shtml
< Location >
Order deny,allow
deny from all
allow from 192.168.8.210
DAV On  DavDepthInfinity on
< /Location >
< /VirtualHost *>

The above little bit finally allows me to use WebDAV with Dreamweaver and connect to my server without any worry about exposing WebDAV to the unwashed public.

Leave a Reply

You must be logged in to post a comment.