logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Directing Apache to look for files on external hard drive
Author
eon123



Joined: 29 Nov 2012
Posts: 2
Location: US, L.A.

PostPosted: Fri 30 Nov '12 2:23    Post subject: Directing Apache to look for files on external hard drive Reply with quote

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: 7306
Location: Germany, Next to Hamburg

PostPosted: Fri 30 Nov '12 18:52    Post subject: Reply with quote

See the default distro layout in the apache wiki

http://wiki.apache.org/httpd/DistrosDefaultLayout#Mac_OS_X_.28Leopard.2C_Apache_httpd_2.2.29:

if you still have a question please ask again
Back to top
eon123



Joined: 29 Nov 2012
Posts: 2
Location: US, L.A.

PostPosted: Tue 04 Dec '12 23:54    Post subject: re: question Reply with quote

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


Reply to topic   Topic: Directing Apache to look for files on external hard drive View previous topic :: View next topic
Post new topic   Forum Index -> Apache