Last Updated: February 25, 2016
·
215
· ruinunes

simple folder alias

I have various projects on a single development folder.
Some of them are websites.
And to keep everything close, I like to stay away from putting stuff on the classic /htdocs (win) or /Sites (mac) folders.

So I simply create aliases on apache's httpd.conf file:

Alias /somewebsite.com c:/dev/git-repos/somewebsite.com
<Directory "c:/dev/git-repos/somewebsite.com">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

And then, access with http://localhost/somewebsite.com