The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Monday 18 May 2009

Map a directory in Apache outside the documentroot


Assuming that you are using Zend Server CE under Windoes and that is installed in "C:\Program Files\Zend", here is how to map a directory, which is outside the documentroot.

* Create a new directory: C:\Program Files\Zend\Apache2\lol
* Add a new alias in C:\Program Files\Zend\Apache2\conf\http.conf, inside "": Alias /lol "C:\Program Files\Zend\Apache2\lol"
* Add the permissions to the direcotry:


Order allow,deny
Allow from all


Than you can reach the directory "lol": http://localhost/lol/

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home