🐛 Fix proxy site template
These are errors from a bodged PR (my bad) that has been merged too early.
This commit is contained in:
parent
6452e4a277
commit
b9488e19db
1 changed files with 9 additions and 9 deletions
|
@ -18,9 +18,9 @@
|
||||||
</ifmodule>
|
</ifmodule>
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<IfFile {{dehydrated_certs_dir}/{{ site_name }}/cert.pem>
|
<IfFile {{dehydrated_certs_dir}}/{{ site_name }}/cert.pem>
|
||||||
<IfFile {{dehydrated_certs_dir}/{{ site_name }}/privkey.pem>
|
<IfFile {{dehydrated_certs_dir}}/{{ site_name }}/privkey.pem>
|
||||||
<IfFile {{dehydrated_certs_dir}/{{ site_name }}/chain.pem>
|
<IfFile {{dehydrated_certs_dir}}/{{ site_name }}/chain.pem>
|
||||||
{% if 'address' in ansible_default_ipv6 %}
|
{% if 'address' in ansible_default_ipv6 %}
|
||||||
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
|
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -35,11 +35,11 @@
|
||||||
|
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||||||
SSLCertificateFile {{dehydrated_certs_dir}/{{ site_name }}/cert.pem
|
SSLCertificateFile {{dehydrated_certs_dir}}/{{ site_name }}/cert.pem
|
||||||
SSLCertificateKeyFile {{dehydrated_certs_dir}/{{ site_name }}/privkey.pem
|
SSLCertificateKeyFile {{dehydrated_certs_dir}}/{{ site_name }}/privkey.pem
|
||||||
SSLCertificateChainFile {{dehydrated_certs_dir}/{{ site_name }}/chain.pem
|
SSLCertificateChainFile {{dehydrated_certs_dir}}/{{ site_name }}/chain.pem
|
||||||
|
|
||||||
<% if proxy_port %>
|
{% if proxy_port %}
|
||||||
AllowEncodedSlashes NoDecode
|
AllowEncodedSlashes NoDecode
|
||||||
ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/ nocanon
|
ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/ nocanon
|
||||||
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|
||||||
|
@ -52,9 +52,9 @@
|
||||||
RewriteCond %{HTTP:Connection} upgrade [NC]
|
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||||
RewriteRule ^/?(.*) "ws://{{ backend_host | default("localhost") }}:{{ proxy_port }}/$1" [P,L]
|
RewriteRule ^/?(.*) "ws://{{ backend_host | default("localhost") }}:{{ proxy_port }}/$1" [P,L]
|
||||||
</ifmodule>
|
</ifmodule>
|
||||||
<% else %>
|
{% else %}
|
||||||
Redirect 404 /
|
Redirect 404 /
|
||||||
< %endif %>
|
{% endif %}
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
</IfFile>
|
</IfFile>
|
||||||
</IfFile>
|
</IfFile>
|
||||||
|
|
Loading…
Reference in a new issue