Add URL Redirection for websites

This commit is contained in:
2021-10-26 21:21:39 -05:00
parent 6dbde96153
commit 8b2a993fb0
2 changed files with 7 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ MDStoreDir md
{% endif %}
ServerAdmin webmaster@{{ item.fqdn }}
DocumentRoot /srv/http/{{ item.fqdn }}
{% if item.redirect is defined %}
Redirect temp {{ item.redirect }}
{% endif %}
</VirtualHost>
MDomain {{ item.fqdn }}
@@ -54,6 +57,9 @@ MDomain {{ item.fqdn }}
ProxyPass "/" "{{ item.proxy }}"
ProxyPassReverse "/" "{{ item.proxy }}"
ProxyTimeout 300
{% endif %}
{% if item.redirect is defined %}
Redirect temp {{ item.redirect }}
{% endif %}
<Location /.git>
Require all denied