httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Holley <>
Subject Re: [users@httpd] Getting .htaccess to work
Date Mon, 24 May 2004 17:51:03 GMT
Well here is the site.conf file:

## Default Virtual Host Configuration

<VirtualHost *:16080>
          DocumentRoot "/Library/WebServer/Documents/identity/"
          DirectoryIndex "index.html" "index.php" "identity.html"
          CustomLog "/var/log/httpd/access_log" "%{PC-Remote-Addr}i %l %u
%t \"%r\" %>s %b"
          ErrorLog "/var/log/httpd/error_log"
          ErrorDocument 404 /error.html
          ErrorDocument 403 /403error/403error.htm
          <IfModule mod_ssl.c>
                  SSLEngine Off
                  SSLLog "/var/log/httpd/ssl_engine_log"
                  SSLCertificateChainFile "/etc/httpd/ssl.crt/ca.crtX"
                  SSLCertificateFile "/etc/httpd/ssl.crt/server.crtX"
                  SSLCertificateKeyFile "/etc/httpd/ssl.key/server.keyX"
          <IfModule mod_dav.c>
                  DAVLockDB "/var/run/davlocks/.davlock100"
                  DAVMinTimeout 600
          <Directory "/Library/WebServer/Documents/identity/">
                  Options All -Indexes -ExecCGI +MultiViews
                  <IfModule mod_dav.c>
                          DAV Off
                  AllowOverride All
          <IfModule mod_rewrite.c>
                  RewriteEngine On
                  RewriteCond %{REQUEST_METHOD} ^TRACE
                  RewriteRule .* - [F]
          <IfModule mod_alias.c>
          LogLevel warn

          <Directory /Library/WebServer/Documents/identity/mediaFiles>
          AllowOverride All


The .htaccess file in it's entirety:

Order Deny,Allow
          Deny from all
          Allow from 128.187
          Allow from
##<Limit GET>
##Order Deny,Allow
##      Deny from all
##      Allow from 128.187
##      Allow from
##Order Allow,Deny
##      Allow from 128.187
##      Deny from all
##<Directory /Library/WebServer/Documents/identity/mediaFiles/>
##Order Allow,Deny
##        Allow from 128.187
##       Deny from all
Like I mentioned before I tried various different ways of formating, 
and instead of deleting them I commented them out.

I have also looked through the httpd.conf file and couldn't find any 
directive that conflict with this file. I also found the log and looked
through it and didn't see anything out of the ordinary, but if you 
still want me to forward it on I can.
On May 21, 2004, at 12:35 PM, Joshua Slive wrote:

> On Fri, 21 May 2004, Mike Holley wrote:
>>> You haven't been very clear about exactly what happens with the 
>>> above configuration.  Is everyone allowed in?  Is nobody allowed in?
>> Right now every one can download from the site. What I have found, 
>> and forgot to mention, is that I can't modify the default. If the 
>> order directive say the default is allow, then it seems to ignore the 
>> "deny from all" line. Whereas if the default is deny then it ignores 
>> the "allow from 128.187" line. As it is now, the default is allow so 
>> everyone can get in, seeing that "there is no deny." (At least that 
>> is what I figure.)
> There are a few possibilities here.  Once is that perhaps you don't 
> understand the Order directive.  "Order deny,allow" means that the 
> default is "allow from all", then any deny directives are evaluated 
> then any allow directives.
> Another possibility is that there are other allow/deny/order 
> directives in your config that are interfering with this set.  In 
> particular, check for any <Location> or <files> sections containing 
> allow/deny/order.
> Joshua.
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:> for more info.
> To unsubscribe, e-mail:
>   "   from the digest:
> For additional commands, e-mail:

View raw message