ansible-role-keycloak/templates/apache.conf.j2

15 lines
495 B
Plaintext
Raw Normal View History

2021-06-06 20:12:52 +02:00
<VirtualHost *:80>
ServerName {{ inventory_hostname }}
ServerAdmin webmaster@{{ inventory_hostname }}
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.access.log combined
2021-06-06 20:20:16 +02:00
#rewrite transparent to https, keep uri
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
2021-06-06 20:12:52 +02:00
</VirtualHost>