This is extremely easy to do. This was done on Ubuntu 8.04. Replace "SERVER_IP" with the IP address of your server.
Edit /etc/apache2/apache2.conf and add the following:
Create a new file "subdomain" in /etc/apache2/sites-available with the content:
<VirtualHost SERVER_IP:80> ServerName subdomain.yourdomain.com DocumentRoot /var/www/subdomain <Directory /var/www/subdomain> Order allow,deny Allow from all \</Directory>
If you made it this far, you should follow me on Twitter.
-JPcomments powered by Disqus