Use Symbolic Links instead of vhost for localhost web development
I spent a couple hours trying to setup some vhosts in Apache2 for developing some web applications. The annoying thing is that my IDE (Eclipse/Aptana) uses a directory in my Home folder to store my projects. Therefore I needed to create a vhost to point to those project folders.
What is more easy is to use the default Apache2 setup and put symbolic links in /var/www/ for each of your projects. Soooo much easier!
Update on Wednesday, July 1, 2009 by
Jared
An example command would be:
$ ln -s /original/folder /new/link
Note that because this is a link to a directory, the -s option is used to create a soft symbolic link.


Reader Comments