|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ok i've been trying to add directories hosted outside my docroot in apache, but no luck, i have files on drive X:/ and on that particular drive, is car movies.
i want to be able to add the x:/ to my directories so when i type in the extention http://mysite/carvideos/ it will pull it up instead of giving me page not found error. i've read the apache add direcotories and so forth and it's all over my head, so if someone who's actually done this be kind enough to help a lost man out. thanks in advance
__________________
Apache Expert |
|
#2
|
|||
|
|||
|
Add this to either .htaccess, or to httpd.conf
Alias /carvideos/ "x:/car movies" <Directory "X:/car movies"> Options -FollowSymLinks -SymLinksIfOwnerMatch -Indexes Order deny,allow deny from all allow from all </Directory>
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
Quote:
where in the httpd.conf does this go. do i need to add something to the htaccess file as well? also i'm on a windows 2000 machine. i added it to my htacess file and i am now getting forbidden you don't have access to this file on the server, what gives, i thought i fixed everything right, but i guess not. Last edited by asp_man : February 28th, 2003 at 04:43 AM. |
|
#4
|
|||
|
|||
|
Just use the httpd.conf file then.
search for "Alias /" and put your lines near that one. |
|
#5
|
|||
|
|||
|
Quote:
thanks for the help it worked like a charm again thanks for the help man ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Adding Directories Outside The DocRoot! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|