🔧 Setup Apache proxy pass for sites with invalid URIs
This is a setup according to https://www.rabbitmq.com/management.html#proxy which solves a problem with RabbitMQ encoding vhost names in a non-standard way. As this setting does not hurt other sites, we can introduce it into the general template.
This commit is contained in:
parent
17d7aa704a
commit
f9197221c8
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@
|
||||||
SSLCertificateKeyFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem
|
SSLCertificateKeyFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem
|
||||||
SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem
|
SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem
|
||||||
|
|
||||||
ProxyPass / http://{{ backend_host | default("localhost") }}:{{proxy_port}}/
|
AllowEncodedSlashes NoDecode
|
||||||
|
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}
|
||||||
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
|
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue