httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Apache trying to find .htaccess on VirtualHost's DocumentRoot
Date Thu, 14 Jul 2005 17:05:15 GMT
On 7/14/05, Dan Lyons <Dan.Lyons@cs.oag.state.tx.us> wrote:
>  
> We have Apache running on a win2k server, with a mapped drive to a directory
> on a Sun server(also running Apache).  Using VirtualHost, we have made the
> mapped drive our document root to the network shared drive: 
>   
> <VirtualHost ourDNSname:80> 
>  ServerAdmin ouradmin@our.address 
>  DocumentRoot H: 
>  ServerName ourDNSname 
>   <Directory "H:\"> 
>    AllowOverride None 
>    order allow,deny 
>    allow from all 
>   </Directory> 
> </VirtualHost> 
>   
> ....However, whenever we go to http://ourDNSname/anydirectory we get a
> 403-Forbidden error.  In error.log I get the error: 
>   
> <date time> [crit] [client ipaddress] (22)Invalid Argument: h:/.htaccess
> pcfg_openfile: unable to check htaccess file, ensure it is readable 
>   
> I am a novice where Apache and configuring httpd.conf is concerned, but I
> was under the impression that "AllowOverride None" would cause Apache to not
> look for .htaccess, which in any case is not there.  Can anyone recommend
> any solution to keep Apache from looking for a .htaccess file? 

Your base assumption is correct.  Apache won't check for .htaccess
when AllowOverride is none.  I'm not sure what the exact problem here
is, but as a first guess I would use forward-slashes instead of
back-slashes in all pathnames: H:/.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message