OSDN Git Service

BugTrack/2557 Fix touchgraph plugin Moji-bake
[pukiwiki/pukiwiki.git] / .htaccess
1 # Apache .htaccess for PukiWiki
2 #
3 # Copyright
4 #   2002-2020 PukiWiki Development Team
5 #   2001      Originally written by yu-ji
6 # License: GPL v2 or (at your option) any later version
7 #
8 # NOTE: Correct permission of this file 644(or 604)
9
10 ## Access control by Require directive
11 ## needs 'AllowOverride Limit' at httpd.conf
12
13 # Prohibit direct access to .htaccess, .htpasswd or others
14 # (If it's not set by default)
15 #<FilesMatch "^\.ht">
16 #  Require all denied
17 #</FilesMatch>
18
19 # Prohibit direct access
20 <FilesMatch "\.(ini\.php|lng\.php|txt|gz|tgz|zip)$">
21   Require all denied
22 </FilesMatch>
23
24 ## Authentication to this directory with basic-auth
25 ## needs 'AllowOverride AuthConfig' at httpd.conf
26 #AuthType Basic
27 #AuthName      "Authentication required"
28 #AuthUserFile  /path/to/.htpasswd
29 #AuthGroupFile /dev/null
30 #Require       valid-user
31
32 ## Using zlib.output_compression per directory (via .htaccess)
33 ## needs 'AllowOverride Options' at httpd.conf
34 ##
35 ## NOTE:
36 ##   Define PKWK_ZLIB_LOADABLE_MODULE somewhere if you are using
37 ##   PHP extension as loadable module (especially FreeBSD ports)
38 ##   (See BugTrack/738 for detail)
39 #php_flag zlib.output_compression On