Jump to content

add a directory.....


grglaz

Recommended Posts

hi there

 

i want to add a directory to use because the existing hard disk's free space in which i have installed apache is not enough.my apache's direcory is in "E:\" and i want to add and use the space from "C:\"

can soomebody help me?i tried to create an alias directory but didnt work.

Link to comment
Share on other sites

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