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

RE: [cobalt-users] .htaccess - directory browsing options



> > > I am trying to stop directory browsing for a single client on a RAQ4r.
> > > I have created a .htaccess file with the following contents
> > >
> > > #Access file
> > > Options -Indexes
> > >
> > > Whenever I try and put this in the /web directory I am getting
> > an internal
> > > server error.
> >
> > You have to put AllowOverrides On (or something like that) in httpd.conf
> > within the virtual site container.  By default, the RaQ is set up to
> > ignore/disallow .htaccess files which change settings.
>
>
> Thanks Bruce
>
> According to the Apache book the Default is actually
> Allowoverrides All and
> apache looks for a .htaccess file by default (this filename is settable in
> srm.conf) to tun it off it is AllowOverrides None.
>
> Even adding
>
> <Directory /homes/sites/sitex/web>
> AllowOverides All
> </Directory>
>
> In the sitex virtual host section of httpd.conf makes no difference.
> Httpd restarts ok, but the internal server error still exists as soon as I
> put the .htaccess file in the /web directory.
>
> I would like to try and use the .htaccess method so changes can be made by
> others and httpd does not have to restarted each time.
>
> I dont know what is going on, has antone else got this working ?
>
> Cheers
>
> Paul.
Paul,
I seem to recall when this was discussed before that you had to change it
for the site but also a global one in the .conf needed altering as well.

Phil

** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)