Afficher un message
Vieux 15/03/2005, 18h05   #2
Jim Hayter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Hiding all files beginning with dot

On Tue, 15 Mar 2005 10:27:28 +0000, in
comp.infosystems.www.servers.unix, Mark <watson@211bakerstreet.com>
wrote:

>Hi,
>
>I have been labouring under the belief that files beginning with a dot
>were hidden from publick view on Unix. However I find that on my
>server this is only true for certain files such as .htaccess.
>
>Is there any way I can make the server hide all dot files?
>


The following is from httpd.conf. I suspect that you could just
change the argument list to the Files line from "^\.ht" to "^\."

# The following lines prevent .htaccess files from being viewed by
# Web clients. Since .htaccess files often contain authorization
# information, access is disallowed for security reasons. Comment
# these lines out if you want Web visitors to see the contents of
# .htaccess files. If you change the AccessFileName directive above,
# be sure to make the corresponding changes here.
#
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

HTH,
Jim
  Réponse avec citation
 
Page generated in 0,07657 seconds with 9 queries