-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
38 lines (35 loc) · 1.33 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# httpd.conf の設定で、.htaccess内での設定が許されていない項目を、設定してい
# るとInternal Server Errorになることがあります。 その場合、httpd.conf で、
# AllowOverrideを適切に設定してください。
# (例) AllowOverride AuthConfig FileInfo Options Limit
# または、全ての設定をhttpd.conf内で行なうようにしてください。
# エラーページの指定
ErrorDocument 500 /starbug1/error.html
# CGIの実行許可
AddHandler cgi-script cgi
Options +ExecCGI
# 初期ページの設定
DirectoryIndex index.cgi
# 一般ユーザの認証についての設定
#<Files index.cgi>
# AuthName "authentication for guest user."
# AuthType Basic
# AuthUserFile /etc/starbug1/.guest-passwd
# Require valid-user
#</Files>
# 管理ユーザの認証についての設定
#<Files admin.cgi>
# AuthName "authentication for administrator user."
# AuthType Basic
# AuthUserFile /etc/starbug1/.admin-passwd
# Require valid-user
#</Files>
# 隠すファイルやディレクトリ
<FilesMatch ".*">
deny from all
</FilesMatch>
# 見せるファイル
<FilesMatch "(^$|\.html$|\.cgi$|\.jpg$|\.png$|\.gif$|\.css$|\.js$|\.json$|^COPYING_cgic$|favicon.ico)">
allow from all
</FilesMatch>
# vim: set ts=4 sw=4 sts=4 expandtab fenc=utf-8: