My network setup includes a linksys router connected directly to the internet using a pppoe internet connection. I have a dynamic IP and thanks to hughsjr's scripts (see Server on a Non-static IP) my ip is constantly updated with my domain.
On my router, I have port 80 being forwarded from the router to my internet webserver (192.168.0.2).
Currently I have www.thegoodtimes.ca and sober.thegoodtimes.ca setup, using apache 1.3.x, here is my virtual host settings at the bottom of my /etc/apache/httpd.conf file:
QUOTE
NameVirtualHost *:80
<VirtualHost *>
ServerName www.thegoodtimes.ca
ServerAlias thegoodtimes.ca
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *>
ServerName sober.thegoodtimes.ca
DocumentRoot /home/blew/public_html
</VirtualHost>
<VirtualHost *>
ServerName www.thegoodtimes.ca
ServerAlias thegoodtimes.ca
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *>
ServerName sober.thegoodtimes.ca
DocumentRoot /home/blew/public_html
</VirtualHost>
Obviously I can add more options to the VirtualHost directives, but using this bare minimum made it work.