Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'serving apache from another drive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
serving apache from another drive
Authored by: offsky on Apr 11, '01 08:39:56PM

Does anyone know how to set apache to serve the files from my second internal drive? Also, is it possible to get to my second drive from the terminal? It seems like the root directory is inside my first hard drive, and there is no way to go one level higher.


[ Reply to This | # ]
serving apache from another drive
Authored by: tomassetti on Apr 12, '01 03:45:53PM

Using the terminal is quite simple to get any hard drive or partitions.
You should go to the directory /Volumes/ typing:
cd /Volumes
In this directory You will find all the Volumes mounted on Your desktop. Simply type
to get in

To let Apache serve documents stored in different hard drives or partitions You should configure it to do so... the simplest way is to create a symbolic link form the standard serving location to the desired location in the different hard drive. You can use the command
while staying in the apache standard serving location.

Good luck!

[ Reply to This | # ]
serving apache from another drive
Authored by: pbagnall on Jan 29, '03 10:47:01AM

look for the Directory and DocumentRoot settings in your apache conf file (/etc/http/http.conf) and point them to where you'd like to have your site stored. As for where other discs live, look in /Volumes and you'll see all your other hard discs.

hope that helps

[ Reply to This | # ]