-
Notifications
You must be signed in to change notification settings - Fork 103
/
etc_apache2_sites-available_little-backup-box.conf
117 lines (79 loc) · 2.39 KB
/
etc_apache2_sites-available_little-backup-box.conf
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<VirtualHost *:80 *:8080>
DocumentRoot /var/www/little-backup-box/
Alias /files /var/www/tinyfilemanager
<Directory /var/www/little-backup-box>
<FilesMatch "\.(sh|cfg)$">
Order Deny,Allow
Deny from all
</FilesMatch>
<FilesMatch "\.log$">
ForceType text/plain
</FilesMatch>
</Directory>
<Directory /var/www/tinyfilemanager>
Options +FollowSymLinks
</Directory>
<Location />
include /etc/apache2/includes/password.conf
</Location>
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
ErrorLog ${APACHE_LOG_DIR}/lbb-error.log
CustomLog ${APACHE_LOG_DIR}/lbb-access.log combined env=!dontlog
</VirtualHost>
<VirtualHost *:81>
ProxyPreserveHost Off
ProxyRequests Off
ProxyPass / http://localhost:5572/
ProxyPassReverse / http://localhost:5572/
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
ErrorLog ${APACHE_LOG_DIR}/rclone-error.log
CustomLog ${APACHE_LOG_DIR}/rclone-access.log combined env=!dontlog
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot /var/www/little-backup-box
Alias /files /var/www/tinyfilemanager
SSLEngine on
SSLCertificateFile /etc/ssl/certs/little-backup-box.crt
SSLCertificateKeyFile /etc/ssl/private/little-backup-box.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
<Directory /var/www/little-backup-box>
<FilesMatch "\.(sh|cfg)$">
Order Deny,Allow
Deny from all
</FilesMatch>
<FilesMatch "\.log$">
ForceType text/plain
</FilesMatch>
</Directory>
<Directory /var/www/tinyfilemanager>
Options +FollowSymLinks
</Directory>
<Location />
include /etc/apache2/includes/password.conf
</Location>
# log
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
ErrorLog ${APACHE_LOG_DIR}/lbb-error.log
CustomLog ${APACHE_LOG_DIR}/lbb-access.log combined env=!dontlog
</VirtualHost>
<VirtualHost *:8443>
SSLEngine on
SSLProxyEngine On
SSLCertificateFile /etc/ssl/certs/little-backup-box.crt
SSLCertificateKeyFile /etc/ssl/private/little-backup-box.key
ProxyPreserveHost Off
ProxyRequests Off
ProxyPass / http://localhost:5572/
ProxyPassReverse / http://localhost:5572/
# log
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
ErrorLog ${APACHE_LOG_DIR}/rclone-error.log
CustomLog ${APACHE_LOG_DIR}/rclone-access.log combined env=!dontlog
</VirtualHost>
</IfModule>