Re: [users@httpd] Apache trying to find .htaccess on VirtualHost's DocumentRoot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/14/05, Dan Lyons <Dan.Lyons@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxx 
>  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux