The Apache Haus Forum

Forum Topics => Apache 2.4 => Topic started by: mpfrench on March 30, 2013, 04:12:39 AM

Title: Cannot Access a Hard Drive Unless Apache Runs Off It
Post by: mpfrench on March 30, 2013, 04:12:39 AM
I've installed Apachehaus version 2.4.4 (64 bit) on Windows 7 (64 bit).  Using a virtual hosts setup, on one instance, I'm trying to serve files that are installed on a second hard drive where apache is installed on another hard drive.  I keep getting permission error messages and have tried setting the permissions in addition to using the Alias command.  Anyone have the solution?
Title: Re: Cannot Access a Hard Drive Unless Apache Runs Off It
Post by: Gregg on March 30, 2013, 04:22:06 AM
Error log says?
Title: Re: Cannot Access a Hard Drive Unless Apache Runs Off It
Post by: mpfrench on March 30, 2013, 02:54:26 PM
The error log does not report anything.  The message fed to the client browser is "The requested URL / was not found on this server."
Title: Re: Cannot Access a Hard Drive Unless Apache Runs Off It
Post by: mpfrench on March 30, 2013, 03:12:09 PM
Disregard my last post.

I have the server installed on C:.  I'm trying to serve files from G:.  Client browser displays message "You don't have permission to access / on this server."  Error log reports "[Sat Mar 30 09:05:18.853515 2013] [authz_core:error] [pid 1832:tid 1128] [client 192.168.113.108:49222] AH01630: client denied by server configuration: G:/MOVIES/"
Title: Re: Cannot Access a Hard Drive Unless Apache Runs Off It
Post by: Gregg on March 30, 2013, 07:13:12 PM
Must grant access to the G:/MOVIES directory in Apache.

<Directory "G:/MOVIES/">
Options None
AllowOverride None
Require all granted
</Directory>
Title: Re: Cannot Access a Hard Drive Unless Apache Runs Off It
Post by: mpfrench on March 30, 2013, 11:55:12 PM
You pointed me in the right direction which let me get it working.  Here's what I ended with:

<Directory "G:/MOVIES">
Options Indexes
AllowOverride None
AuthType Digest
AuthName "Movies"
AuthDigestProvider file
AuthUserFile PASSWD/pwdigest80.txt
Require valid-user
</Directory>

Thanks for your help!