diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-08 18:42:49 -0500 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-08 18:42:49 -0500 |
commit | 715a002f564ecaa757633ec66b191d84a045eceb (patch) | |
tree | b538c13c026e8f0f3a2335aaa02a0d8fada59237 /roles/apache_vhost/templates/etc/httpd/conf.d | |
parent | 3c20895bc608c081eea9c1ddac097644ec79c3a5 (diff) | |
download | selfhosted-715a002f564ecaa757633ec66b191d84a045eceb.tar.gz selfhosted-715a002f564ecaa757633ec66b191d84a045eceb.zip |
document apache roles
Diffstat (limited to 'roles/apache_vhost/templates/etc/httpd/conf.d')
-rw-r--r-- | roles/apache_vhost/templates/etc/httpd/conf.d/vhost.conf.j2 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/apache_vhost/templates/etc/httpd/conf.d/vhost.conf.j2 b/roles/apache_vhost/templates/etc/httpd/conf.d/vhost.conf.j2 index a925372..12a682e 100644 --- a/roles/apache_vhost/templates/etc/httpd/conf.d/vhost.conf.j2 +++ b/roles/apache_vhost/templates/etc/httpd/conf.d/vhost.conf.j2 @@ -1,5 +1,5 @@ {% if apache_use_ssl and apache_redirect_to_https %} -<VirtualHost {{ apache_listen | default('*') }}:80> +<VirtualHost {{ apache_listen }}:80> ServerName {{ apache_server_name }} {% for alias in apache_server_aliases %} ServerAlias {{ alias }} @@ -18,7 +18,7 @@ {% else %} {% if apache_canonical_hostname is defined and (apache_server_aliases | length > 0) %} -<VirtualHost {{ apache_listen | default('*') }}:80> +<VirtualHost {{ apache_listen }}:80> {% for alias in ([apache_server_name] + apache_server_aliases) | reject('equalto', apache_canonical_hostname) | list %} {% if loop.first %} ServerName {{ alias }} @@ -36,7 +36,7 @@ </VirtualHost> {% endif %} -<VirtualHost {{ apache_listen | default('*') }}:80> +<VirtualHost {{ apache_listen }}:80> {% if apache_document_root is defined %} DocumentRoot "{{ apache_document_root }}" {% endif %} @@ -73,7 +73,7 @@ {% if apache_use_ssl %} {% if apache_canonical_hostname is defined and (apache_server_aliases | length > 0) %} -<VirtualHost {{ apache_listen | default('*') }}:443> +<VirtualHost {{ apache_listen }}:443> {% for alias in ([apache_server_name] + apache_server_aliases) | reject('equalto', apache_canonical_hostname) | list %} {% if loop.first %} ServerName {{ alias }} @@ -96,7 +96,7 @@ </VirtualHost> {% endif %} -<VirtualHost {{ apache_listen | default('*') }}:443> +<VirtualHost {{ apache_listen }}:443> {% if apache_document_root is defined %} DocumentRoot "{{ apache_document_root }}" {% endif %} |