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: Drive Access |
|
Author |
|
Osteele
Joined: 14 Nov 2005 Posts: 8 Location: Canada
|
Posted: Thu 24 Nov '05 20:45 Post subject: Drive Access |
|
|
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
|
Posted: Thu 24 Nov '05 20:54 Post subject: |
|
|
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
|
Posted: Thu 24 Nov '05 21:27 Post subject: |
|
|
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
|
Posted: Sat 26 Nov '05 19:46 Post subject: |
|
|
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
|
Posted: Sat 26 Nov '05 23:08 Post subject: |
|
|
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
|
Posted: Sun 27 Nov '05 18:42 Post subject: |
|
|
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
|
Posted: Mon 28 Nov '05 0:38 Post subject: |
|
|
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
|
Posted: Mon 28 Nov '05 1:43 Post subject: |
|
|
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 |
|
|
|
|
|
|