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: Drive Access
Author
Osteele



Joined: 14 Nov 2005
Posts: 8
Location: Canada

PostPosted: Thu 24 Nov '05 20:45    Post subject: Drive Access Reply with quote

My web site is located at c:\apache\apache2\htdocs.

I want to give users who visit my site access to files located on a second physical drive "e".

How can I accomplish this.

Your time and assistance is greatly appreciated.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Thu 24 Nov '05 20:54    Post subject: Reply with quote

DocumentRoot = e:/.../....

From the Apache docs:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#

Steffen
Back to top
Osteele



Joined: 14 Nov 2005
Posts: 8
Location: Canada

PostPosted: Thu 24 Nov '05 21:27    Post subject: Reply with quote

So, if I understand correctly.

I can serve content from both these locations.

DocumentRoot "C:/Apache/Apache2/htdocs"

and

DocumentRoot "E:/music"

Steffen wrote:
DocumentRoot = e:/.../....

From the Apache docs:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#

Steffen
Back to top
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Sat 26 Nov '05 19:46    Post subject: Reply with quote

Hi Osteele,

You bet you can serve content from both locations. You are wise to place NO docs in the same location as Apache, in my view. I prefer to place ALL content, regardless of what it is, on another physical hard drive. I have vhosts that span three separate hard drives, no problems there at all.

--
Brian
Back to top
Osteele



Joined: 14 Nov 2005
Posts: 8
Location: Canada

PostPosted: Sat 26 Nov '05 23:08    Post subject: Reply with quote

Hello Brian.

Thanks so much for the help

This is the syntax that I used:

DocumentRoot "C:/Apache/Apache2/htdocs"
DocumentRoot "E:/music"

When I ran Test Configuration from my start menu, Apache wouldn't start up. As soon as I removed DocumentRoot "E:/music" from the equation, all was fine.

What am I doing wrong.
Brian wrote:
Hi Osteele,

You bet you can serve content from both locations. You are wise to place NO docs in the same location as Apache, in my view. I prefer to place ALL content, regardless of what it is, on another physical hard drive. I have vhosts that span three separate hard drives, no problems there at all.

--
Brian
Back to top
Demoric



Joined: 23 Nov 2005
Posts: 9
Location: S.E. Kansas

PostPosted: Sun 27 Nov '05 18:42    Post subject: Reply with quote

Try using an alias:
After you set it up you can access it as though it were a folder in your htdocs
Code:
   Alias /music "E:/music"
   <Directory E:/music>
      Options Indexes FollowSymLinks
      #AllowOverride None
      Order deny,allow
      Allow from all
      Deny from all
   </Directory>
Back to top
Osteele



Joined: 14 Nov 2005
Posts: 8
Location: Canada

PostPosted: Mon 28 Nov '05 0:38    Post subject: Reply with quote

What can I say. You're the MAN...

After posting my inquiry on a few forums and newsgroups, my problem has been solved. In most cases, I got no response at all.

A million thanks. I appreciate your time and assistance immensely.

Peter

Demoric wrote:
Try using an alias:
After you set it up you can access it as though it were a folder in your htdocs
Code:
   Alias /music "E:/music"
   <Directory E:/music>
      Options Indexes FollowSymLinks
      #AllowOverride None
      Order deny,allow
      Allow from all
      Deny from all
   </Directory>
Back to top
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Mon 28 Nov '05 1:43    Post subject: Reply with quote

Hi Peter,

It is your question, and other's answers, that make this site work.

At the present time this is much smaller in terms of traffic than the other longer established sites, but they also started as Apache Lounge is, and it is through good posts, interesting questions, and follow ups like yours that will help Apache Lounge grow into the #1 premier Windows + Apache support site.

It is hard enough to get help for Windows and Apache. My first post at another HUGE and very busy site was greeted with an answer along the lines of, "step #1, format hard drive, step #2, install linux".

You wont find that type of arrogance here : )

Best wishes to you and everyone.

--
Brian
Back to top


Reply to topic   Topic: Drive Access View previous topic :: View next topic
Post new topic   Forum Index -> Apache