View Single Post

  #2 (permalink)  
Old 03-09-2008
Nicolas BOUTHORS
 
Posts: n/a
Default Re: Adding a directory for Localhost and PHP

david-arnold@redwoods.edu a écrit :
> where mathdept is an alias to another directory on my system that is
> outside my Sites folder.
>
> Possible?


Use a symlink (man ls) and add to your options the "FollowSymLinks"
keyword. Be sure to grant access to the other directory.

Example :
<Directory /somewhere/else>
Order allow,deny
Allow from all
</Directory>

<Directory /home/*/public_html>
Options ... FollowSymLinks.
</Directory>

Be sure to understand possible security risks though (exposure of
sensible files). And read the doc :
http://httpd.apache.org/docs/1.3/mod/core.html#options

Cheers,

Nicolas

--
Nicolas Bouthors -=- Tel : 06 20 71 62 34 -=- Fax : 01 46 87 21 99
NBi SARL -=- http://nbi.fr -=- nbouthors@nbi.fr