Skip to content

Commit

Permalink
No ssl on vhosts.
Browse files Browse the repository at this point in the history
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
  • Loading branch information
robertdebock committed Jan 28, 2020
1 parent bc31451 commit 65516e4
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions templates/vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,3 @@ ProxyPass / {{ item.backend_url }}
{% endfor %}
{% endif %}
</VirtualHost>

<VirtualHost *:{{ httpd_ssl_port }}>
ServerName {{ item.servername }}
{% if item.documentroot is defined %}
DocumentRoot "{{ item.documentroot }}"
{% endif %}
{% if item.backend_url is defined %}
{% if "https" in item.backend_url %}
SSLProxyEngine on
SSLCertificateFile "{{ httpd_config_directory }}/ssl/{{ httpd_ssl_servername }}.crt"
SSLCertificateKeyFile "{{ httpd_config_directory }}/ssl/{{ httpd_ssl_servername }}.key"
{% endif %}
{% if item.proxy_preserve_host is defined and item.proxy_preserve_host is sameas true %}
ProxyPreserveHost On
{% elif item.proxy_preserve_host is defined and item.proxy_preserve_host is sameas false %}
ProxyPreserveHost Off
{% endif %}
ProxyPass / {{ item.backend_url }}
ProxyPassReverse / {{ item.backend_url }}
{% endif %}
{% if item.remote is defined %}
ProxyRemote * {{ item.remote }}
{% endif %}
{% if item.proxy_requests is defined and item.proxy_requests is sameas true %}
ProxyRequests On
{% elif item.proxy_requests is defined and item.proxy_requests is sameas false %}
ProxyRequests Off
{% endif %}
{% if item.setenv is defined %}
{% for env in item.setenv %}
SetEnv {{ env.name }} {{ env.value | default("") }}
{% endfor %}
{% endif %}
</VirtualHost>

0 comments on commit 65516e4

Please sign in to comment.