-
Notifications
You must be signed in to change notification settings - Fork 67
/
.htaccess
35 lines (29 loc) · 931 Bytes
/
.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
RewriteEngine On
#RewriteCond %{REMOTE_ADDR} !127.0.0.1
RewriteCond %{DOCUMENT_ROOT}/maintenance.cgi -f
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.cgi
RewriteCond %{SCRIPT_FILENAME} !css/*
RewriteCond %{SCRIPT_FILENAME} !.*\.css
RewriteCond %{SCRIPT_FILENAME} !.*\.po
RewriteCond %{SCRIPT_FILENAME} !favicon.ico
RewriteRule ^.*$ /maintenance.cgi [R=503,L]
ErrorDocument 503 /maintenance.cgi
SetEnv LC_ALL "en_US.UTF-8"
<FilesMatch "^\.ht.*">
deny from all
satisfy all
ErrorDocument 403 "Access to these files is forbidden!"
</FilesMatch>
<FilesMatch "^data.yaml$">
deny from all
satisfy all
ErrorDocument 403 "Access to these files is forbidden!"
</FilesMatch>
RewriteRule \.git.* /data.yaml
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
ErrorDocument 500 /error.cgi
ErrorDocument 404 /not_found.cgi
ErrorDocument 401 /authorization_required.cgi