Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.