<% end -%>
ServerAdmin webmaster@openstreetmap.org
- CustomLog /var/log/apache2/<%= @name %>-access.log combined
+ CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended
ErrorLog /var/log/apache2/<%= @name %>-error.log
RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
- CustomLog /var/log/apache2/<%= @name %>-access.log combined
+ CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended
ErrorLog /var/log/apache2/<%= @name %>-error.log
RedirectPermanent / https://<%= @name %>/
ServerName <%= @name %>
ServerAdmin webmaster@openstreetmap.org
- CustomLog /var/log/apache2/<%= @name %>-access.log combined
+ CustomLog /var/log/apache2/<%= @name %>-access.log combined_extended
ErrorLog /var/log/apache2/<%= @name %>-error.log
SSLEngine on
</Location>
</VirtualHost>
- <Directory /opt/otrs/bin/cgi-bin>
- AllowOverride None
- Options +ExecCGI -Includes
- Require all granted
- </Directory>
+<Directory /opt/otrs/bin/cgi-bin>
+ AllowOverride None
+ Options +ExecCGI -Includes
+ Require all granted
+</Directory>
- <Directory /opt/otrs/var/httpd/htdocs>
- AllowOverride None
- Require all granted
- </Directory>
-
- <Directory /opt/otrs/var/httpd/htdocs/skins/*/*/css-cache>
- <FilesMatch "\.(css|CSS)$">
- Header set Cache-Control "max-age=2592000 must-revalidate"
- </FilesMatch>
- </Directory>
-
- <Directory /opt/otrs/var/httpd/htdocs/js/js-cache>
- <FilesMatch "\.(js|JS)$">
- Header set Cache-Control "max-age=2592000 must-revalidate"
- </FilesMatch>
+<Directory /opt/otrs/var/httpd/htdocs>
+ AllowOverride None
+ Require all granted
+</Directory>
+
+<Directory /opt/otrs/var/httpd/htdocs/skins/*/*/css-cache>
+ <FilesMatch "\.(css|CSS)$">
+ Header set Cache-Control "max-age=2592000 must-revalidate"
+ </FilesMatch>
+</Directory>
+
+<Directory /opt/otrs/var/httpd/htdocs/js/js-cache>
+ <FilesMatch "\.(js|JS)$">
+ Header set Cache-Control "max-age=2592000 must-revalidate"
+ </FilesMatch>
</Directory>