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

Re: [cobalt-users] All folders visable on whole server



> ----- Original Message -----
> From: "Brian Curtis" <admin@xxxxxxxxxxx>
> >
> > Forgot to add to my last message:
> >
> > <Files ~ "^adminpro\.(cgi|pl)$">
> >     Order allow,deny
> >     Deny from all
> > </Files>
>
> Brian, where does that go? In httpd.conf or in an .htaccess file?


Just about anywhere you want.  Globally somewhere inside your httpd.conf
(outside any VHOSTs); within a VHOST for specific domain-based restrictions;
or a .htaccess.

I don't think the .htaccess method will be that effective unless you change
the ownership of the file so your user(s) wouldn't be able to delete it.

~~~~~~~~~~
http://www.apache.org/docs/mod/core.html#files
~~~~~~~~~~
<Files> directive
  Syntax: <Files filename> ... </Files>
  Context: server config, virtual host, .htaccess
  Status: core
  Compatibility: only available in Apache 1.2 and above
~~~~~~~~~~

--
Brian Curtis