grglaz Posted March 1, 2008 Share Posted March 1, 2008 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. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 1, 2008 Share Posted March 1, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.