OSDN Git Service

Update .htaccess and .htpasswd
[pukiwiki/pukiwiki.git] / .htaccess
1 # Apache .htaccess
2 # $Id: .htaccess,v 1.11 2005/04/24 11:52:37 henoheno Exp $
3 #
4 # NOTE: Correct permission of this file 644(or 604)
5
6 ## Access control by Order/Allow/Deny directives
7 ## needs 'AllowOverride Limit' at httpd.conf
8
9 # Prohibit direct access to .htaccess, .htpasswd or others
10 # (If it's not set by default)
11 #<FilesMatch "^\.ht">
12 #       Order allow,deny
13 #       Deny from all
14 #</FilesMatch>
15
16 # Prohibit direct access
17 <FilesMatch "\.(ini\.php|lng\.php|txt|gz|tgz|zip)$">
18         Order allow,deny
19         Deny from all
20 </FilesMatch>
21
22 ## Access control to this directory via Basic-auth
23 ## needs 'AllowOverride AuthConfig' at httpd.conf
24 #AuthType Basic
25 #AuthName      "Authentication required"
26 #AuthUserFile  /server's/absolute/path/to/.htpasswd
27 #AuthGroupFile /dev/null
28 #Require       valid-user
29
30 ## Using zlib.output_compression per directory (via .htaccess)
31 ## needs 'AllowOverride Options' at httpd.conf
32 ##
33 ## NOTE:
34 ##   Define PKWK_ZLIB_LOADABLE_MODULE somewhere if you are using
35 ##   PHP extension as loadable module (especially FreeBSD ports)
36 ##   (See BugTrack/738 for detail)
37 #php_flag zlib.output_compression On