-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
75 lines (51 loc) · 2.43 KB
/
.htaccess
File metadata and controls
75 lines (51 loc) · 2.43 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
RewriteEngine On
RewriteCond %{REQUEST_URI} api/metrics$
RewriteRule api/metrics api/index.php?act=metrics [L,QSA]
RewriteCond %{REQUEST_URI} api/domains$
RewriteRule api/domains api/index.php?act=domains [L,QSA]
RewriteCond %{REQUEST_URI} api/logs$
RewriteRule api/logs api/index.php?act=logs [L,QSA]
RewriteCond %{REQUEST_URI} api/os-metrics$
RewriteRule api/os-metrics api/index.php?act=os-metrics [L,QSA]
RewriteCond %{REQUEST_URI} api/hosts$
RewriteRule api/hosts api/index.php?act=hosts [L,QSA]
RewriteCond %{REQUEST_URI} api/admin-domain-save$
RewriteRule api/admin-domain-save api/index.php?act=admin-domain-save [L,QSA]
RewriteCond %{REQUEST_URI} api/admin-host-save$
RewriteRule api/admin-host-save api/index.php?act=admin-host-save [L,QSA]
RewriteCond %{REQUEST_URI} ui/auth-form$
RewriteRule ui/auth-form ui/index.php?act=auth-form [L,QSA]
RewriteCond %{REQUEST_URI} ui/auth-submit$
RewriteRule ui/auth-submit ui/index.php?act=auth-submit [L,QSA]
RewriteCond %{REQUEST_URI} ui/dashboard$
RewriteRule ui/dashboard ui/index.php?act=dashboard [L,QSA]
RewriteCond %{REQUEST_URI} ui/os-metrics$
RewriteRule ui/os-metrics ui/index.php?act=os-metrics [L,QSA]
RewriteCond %{REQUEST_URI} ui/logs$
RewriteRule ui/logs ui/index.php?act=logs [L,QSA]
RewriteCond %{REQUEST_URI} ui/settings$
RewriteRule ui/settings ui/index.php?act=settings [L,QSA]
#block access to license and version files and similar
RewriteCond %{REQUEST_URI} /LICENSE$
RewriteRule LICENSE - [R=404,L]
RewriteCond %{REQUEST_URI} /version.txt$
RewriteRule version.txt - [R=404,L]
#return 404 for all .sql files
RewriteRule \.sql$ - [R=404,NC,L]
#You can set environment variables here or in virtual host config
#Authentication type. REQUIRED. Supported values: none, single (more to be added later)
#SetEnv SBO_AUTH_TYPE single
#Database host
#SetEnv SBO_DB_HOST 127.0.0.1
#Database name
#SetEnv SBO_DB_NAME sboanalytics
#Database user
#SetEnv SBO_DB_USER sboanalytics
#Password for the database user
#SetEnv SBO_DB_PASSWORD "your-strong-mysql-password"
#Username to be used when SBO_AUTH_TYPE is single. REQUIRED when SBO_AUTH_TYPE is single
#SetEnv SBO_AUTH_SINGLE_USER someusername
#Password to be used when SBO_AUTH_TYPE is single. REQUIRED when SBO_AUTH_TYPE is single
#SetEnv SBO_AUTH_SINGLE_PWD "PUT_A_STRONG_PASSWORD_HERE_IF_YOU_WILL_USE_IT"
#Password/secret required to access administrative functions/pages
#SetEnv SBO_ADMIN_SECRET "PUT_A_STRONG_PASSWORD_HERE"