Pages

Friday, April 27, 2012

Add alias to apache, use your home directory folder for development in Ubuntu

Edit apache2.conf
sudo gedit /etc/apache2/apache2.conf

Add line to the end of the file
Alias /mysite /home/hsn/Desktop/projects/mysite

Restart your apache
sudo /etc/init.d/apache2 restart

Now you can go the address
localhost/mysite