Browse Source

Similar log settings for all apache virtual hosts

Thomas Buck 5 years ago
parent
commit
2d359819a2

+ 3
- 0
roles/blog/templates/etc_apache2_sites-available_commento.j2 View File

12
     DirectoryIndex          index.html
12
     DirectoryIndex          index.html
13
     Options                 -Indexes
13
     Options                 -Indexes
14
     HostnameLookups         Off
14
     HostnameLookups         Off
15
+    LogLevel                warn
16
+    ErrorLog                /var/log/apache2/commento.info-error_log
17
+    CustomLog               /var/log/apache2/commento.info-access_log common
15
 
18
 
16
     ProxyRequests           On
19
     ProxyRequests           On
17
     ProxyPreserveHost       On
20
     ProxyPreserveHost       On

+ 3
- 0
roles/blog/templates/etc_apache2_sites-available_fathom.j2 View File

12
     DirectoryIndex          index.html
12
     DirectoryIndex          index.html
13
     Options                 -Indexes
13
     Options                 -Indexes
14
     HostnameLookups         Off
14
     HostnameLookups         Off
15
+    LogLevel                warn
16
+    ErrorLog                /var/log/apache2/fathom.info-error_log
17
+    CustomLog               /var/log/apache2/fathom.info-access_log common
15
 
18
 
16
     ProxyRequests           On
19
     ProxyRequests           On
17
     ProxyPreserveHost       On
20
     ProxyPreserveHost       On

+ 3
- 0
roles/gitea/templates/etc_apache2_sites-available_gitea.j2 View File

12
     DirectoryIndex          index.html
12
     DirectoryIndex          index.html
13
     Options                 -Indexes
13
     Options                 -Indexes
14
     HostnameLookups         Off
14
     HostnameLookups         Off
15
+    LogLevel                warn
16
+    ErrorLog                /var/log/apache2/gitea.info-error_log
17
+    CustomLog               /var/log/apache2/gitea.info-access_log common
15
 
18
 
16
     ProxyRequests           Off
19
     ProxyRequests           Off
17
     ProxyPreserveHost       On
20
     ProxyPreserveHost       On

+ 3
- 0
roles/iot/templates/etc_apache2_sites-available_grafana.j2 View File

12
     DirectoryIndex          index.html
12
     DirectoryIndex          index.html
13
     Options                 -Indexes
13
     Options                 -Indexes
14
     HostnameLookups         Off
14
     HostnameLookups         Off
15
+    LogLevel                warn
16
+    ErrorLog                /var/log/apache2/grafana.info-error_log
17
+    CustomLog               /var/log/apache2/grafana.info-access_log common
15
 
18
 
16
     ProxyRequests           Off
19
     ProxyRequests           Off
17
     ProxyPreserveHost       On
20
     ProxyPreserveHost       On

+ 3
- 0
roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 View File

11
     DocumentRoot            "/var/www/autoconfig"
11
     DocumentRoot            "/var/www/autoconfig"
12
     Options                 -Indexes
12
     Options                 -Indexes
13
     HostnameLookups         Off
13
     HostnameLookups         Off
14
+    LogLevel                warn
15
+    ErrorLog                /var/log/apache2/autoconfig.info-error_log
16
+    CustomLog               /var/log/apache2/autoconfig.info-access_log common
14
 </VirtualHost>
17
 </VirtualHost>

+ 3
- 0
roles/mastodon/templates/etc_apache2_sites-available_mastodon.j2 View File

10
     SSLEngine               On
10
     SSLEngine               On
11
     DocumentRoot            "/home/mastodon/mastodon/public"
11
     DocumentRoot            "/home/mastodon/mastodon/public"
12
     Alias                   "/system" "/data/mastodon/public-system"
12
     Alias                   "/system" "/data/mastodon/public-system"
13
+    LogLevel                warn
14
+    ErrorLog                /var/log/apache2/mastodon.info-error_log
15
+    CustomLog               /var/log/apache2/mastodon.info-access_log common
13
 
16
 
14
     Header always set Referrer-Policy "strict-origin-when-cross-origin"
17
     Header always set Referrer-Policy "strict-origin-when-cross-origin"
15
     Header always set Strict-Transport-Security "max-age=31536000"
18
     Header always set Strict-Transport-Security "max-age=31536000"

+ 3
- 0
roles/matrix/templates/etc_apache2_sites-available_matrix.j2 View File

12
     DirectoryIndex          index.html
12
     DirectoryIndex          index.html
13
     Options                 -Indexes
13
     Options                 -Indexes
14
     HostnameLookups         Off
14
     HostnameLookups         Off
15
+    LogLevel                warn
16
+    ErrorLog                /var/log/apache2/matrix.info-error_log
17
+    CustomLog               /var/log/apache2/matrix.info-access_log common
15
 
18
 
16
     ProxyRequests           Off
19
     ProxyRequests           Off
17
     ProxyPreserveHost       On
20
     ProxyPreserveHost       On

+ 3
- 0
roles/monitoring/templates/etc_apache2_sites-available_monit.j2 View File

12
     DirectoryIndex          index.html
12
     DirectoryIndex          index.html
13
     Options                 -Indexes
13
     Options                 -Indexes
14
     HostnameLookups         Off
14
     HostnameLookups         Off
15
+    LogLevel                warn
16
+    ErrorLog                /var/log/apache2/monit.info-error_log
17
+    CustomLog               /var/log/apache2/monit.info-access_log common
15
 
18
 
16
     ProxyRequests           Off
19
     ProxyRequests           Off
17
     ProxyPreserveHost       On
20
     ProxyPreserveHost       On

+ 1
- 0
roles/news/templates/etc_apache2_sites-available_selfoss.j2 View File

10
     SSLEngine               On
10
     SSLEngine               On
11
     DocumentRoot            /var/www/selfoss
11
     DocumentRoot            /var/www/selfoss
12
     Options                 -Indexes
12
     Options                 -Indexes
13
+    LogLevel                warn
13
     ErrorLog                /var/log/apache2/selfoss.info-error_log
14
     ErrorLog                /var/log/apache2/selfoss.info-error_log
14
     CustomLog               /var/log/apache2/selfoss.info-access_log common
15
     CustomLog               /var/log/apache2/selfoss.info-access_log common
15
 
16
 

+ 1
- 0
roles/nextcloud/templates/etc_apache2_sites-available_nextcloud.j2 View File

10
     SSLEngine               On
10
     SSLEngine               On
11
     DocumentRoot            /var/www/nextcloud
11
     DocumentRoot            /var/www/nextcloud
12
     Options                 -Indexes
12
     Options                 -Indexes
13
+    LogLevel                warn
13
     ErrorLog                /var/log/apache2/nextcloud.info-error_log
14
     ErrorLog                /var/log/apache2/nextcloud.info-error_log
14
     CustomLog               /var/log/apache2/nextcloud.info-access_log common
15
     CustomLog               /var/log/apache2/nextcloud.info-access_log common
15
 
16
 

+ 1
- 1
roles/webmail/templates/etc_apache2_sites-available_roundcube.j2 View File

10
     SSLEngine               On
10
     SSLEngine               On
11
     DocumentRoot            /var/lib/roundcube
11
     DocumentRoot            /var/lib/roundcube
12
     Options                 -Indexes
12
     Options                 -Indexes
13
-    LogLevel		        warn
13
+    LogLevel                warn
14
     ErrorLog                /var/log/apache2/roundcube.info-error_log
14
     ErrorLog                /var/log/apache2/roundcube.info-error_log
15
     CustomLog               /var/log/apache2/roundcube.info-access_log common
15
     CustomLog               /var/log/apache2/roundcube.info-access_log common
16
 
16
 

Loading…
Cancel
Save