Jump to content

add a directory.....


grglaz

Recommended Posts

Apache wont be able to serve files from multiple locations at the same time. You'll need to add an alias, we'll call this alias drivec and make Apache serve files from C:\drivec_files\ when you go to http://yoursite/drivec/

 

To do so open your http.conf and add the follow few lines to at the end of it:

Alias /drivec "C:/drivec_files"

<Directory "C:/drivec_files">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Save your httpd.conf and restart Apache.

Note: make sure the folder C:\drivec_files exists first before starting/restarting Apache

 

However I think it'll be much better if you moved your DocumentRoot completely to C: rather than serving your site from different drives.

Link to comment
https://forums.phpfreaks.com/topic/93847-add-a-directory/#findComment-481172
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.