5

Setting up subdomains on localhost

view full story
linux-howto

http://serverfault.com – I have been trying to set up a subdomain on my local development environment, dev.localhost. I'm using Ubuntu 11.10 and Apache2. So far, I've edited my host file to include the line 127.0.0.1 dev.localhost. I've created a file called axis in /etc/apache2/sites-available which looks like this: <VirtualHost *:80> DocumentRoot /var/www/Axis/trunk ServerName dev.localhost ServerAlias *.localhost <Directory /var/www/Axis/trunk/> Options Indexes FollowSymLinks MultiViews +Includes AllowOverride None Order allow,deny all (HowTos)