Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Directing Apache to look for files on external hard drive |
|
Author |
|
eon123
Joined: 29 Nov 2012 Posts: 2 Location: US, L.A.
|
Posted: Fri 30 Nov '12 2:23 Post subject: Directing Apache to look for files on external hard drive |
|
|
This is an extremely basic question as I'm new to Apache and didn't even know it was on my Mac until recently. But I'm trying to redirect where Apache looks for files. I have a database which uses a web viewer to display thousands of images. Currently, when I execute this feature in the database, it uses a script trigger that grabs a URL which by default is set to my computer's IP address. I've been told that I need to redirect where Apache looks for files, i.e., FROM my computer TO my external hard drive.
To this end, I've located where the Apache2 folder is on my computer, and from what I gather I'm supposed to change the configuration by way of a file named: "httpd.conf." Narrowing it down further, I THINK the following lines are directly pertinent to achieving my goal, but I have no idea how to execute from here. Any suggestions?
DocumentRoot "/Library/WebServer/Documents"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
eon123
Joined: 29 Nov 2012 Posts: 2 Location: US, L.A.
|
Posted: Tue 04 Dec '12 23:54 Post subject: re: question |
|
|
Bare with me here, but I honestly don't now where to begin with understanding the syntax here. Under the header, "Mac OS X (Leopard Apache httpd 2.2):," should I be reading the initial value (ServerRoot, Primary Config Fle, DocumentRoot, etc..) as a vertical column of categories where the backslash "/" separated values to the left of the double colons "::" are specific examples of said categories?
Or should I be reading this as a list in which each row is a stand alone sentence/statement? |
|
Back to top |
|
|
|
|
|
|