htaccess woes

MKlinke mklinke at axsi.com
Mon Jul 26 13:52:58 UTC 2004


On Monday 26 July 2004 08:43, Reuben D. Budiardja wrote:
> On Monday 26 July 2004 08:57, MKlinke wrote:
> > On Monday 26 July 2004 05:13, kenwardc wrote:
> > > Hi All
> >
> > It sounds like you're putting the wrong file in the web site
> > folder. Your setup should look something like below:
> >
> > Regards,  Mike Klinke
> >
> > ---------------------------
> >
> >
> > ---- /etc/httpd/conf/httpd.conf -----
> >
> > <Directory "/var/www/html/protected_directory">
> >         AllowOverride AuthConfig
> >         Order deny,allow
> >         Allow from all
> > </Directory>
>
> I'm not sure if the above in httpd.conf is necessary. I think by
> default the httpd.conf in RHEL (w/ apache2) allows you to put
> .htaccess file anywhere.
>
> I'd try the suggestion below first, wihout changing the httpd.conf
> and see if it works (except if you've changed the default so that
> you need to explicitly enable AuthConfig option for the
> protected_directory).
>
>

Not exactly sure what you're referring to when you say "below", but if 
you're saying that:

---- /etc/httpd/conf/httpd.conf -----

<Directory "/var/www/html">
        AllowOverride AuthConfig
        Order deny,allow
        Allow from all
</Directory>

should work as well, I think I agree.

Regards,  Mike Klinke







More information about the redhat-list mailing list