This is a discussion on Adding a directory for Localhost and PHP within the Apache Web Server forums, part of the Web Server and Related Forums category; All, Running Mac OS X 10.4.11 and Apache 1.3. My apache is configured just fine and it ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
All,
Running Mac OS X 10.4.11 and Apache 1.3. My apache is configured just fine and it will run PHP when I try a url on my local machine such as: http://localhost/~darnold/mathdept/index.php All is well. However, I'd like to add the ability to do this: http://localhost/~darnold/mathdept/index.php where mathdept is an alias to another directory on my system that is outside my Sites folder. Possible? Thanks, David. |
|
|||
|
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 |
| Thread Tools | |
| Display Modes | |
|
|