Имеют следующий conf в gerrit.config: https://gerrit.camel.se/
[gerrit]
basePath = git
#canonicalWebUrl = http://search.ge
rrit.camel.se:9095/
canonicalWebUrl = https://search.gerrit.camel.se:443/
serverId = 13aeea07-6697-4493-bf90-41f9457f4598
ui = polygerrit
enableGwtUi = true
[auth]
type = OAUTH
gitBasicAuthPolicy = HTTP
[httpd]
listenUrl = proxy-http://localhost:8085/
**the following conf in apache2:**
ProxyRequests Off
ProxyPreserveHost On
LISTEN 9095
<VirtualHost *:9095>
ServerName search.gerrit.camel.se
ServerAdmin sysadm@camel.com
ProxyVia Off
<Proxy *>
Require all granted
</Proxy>
#AllowEncodedSlashes NoDecode
AllowEncodedSlashes On
ProxyPass / http://localhost:8085 nocanon
ProxyPassReverse / http://localhost:8085
RequestHeader set X-Forwarded-Proto "http"
ErrorLog /var/log/gerrit/error.log
CustomLog /var/log/gerrit/access.log common
</VirtualHost>
<VirtualHost *:443>
ServerName search.gerrit.camel.se
ServerAdmin sysadm@camel.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/gerrit.camel.se/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/gerrit.camel.se/privkey.pem
#AllowEncodedSlashes NoDecode
AllowEncodedSlashes On
ProxyPass / http://localhost:8085/ nocanon
ProxyPassReverse / http://localhost:8085/
RequestHeader set X-Forwarded-Proto "https"
ErrorLog /var/log/gerrit/error.log
CustomLog /var/log/gerrit/access.log common
</VirtualHost>
когда я пишу https://search.gerrit.camel.se работает нормально вопрос: , когда я вижу http://search.gerrit.camel.se, он перенаправляет меня на https://search.gerrit.camel.se// с дополнительным sla sh / Как я могу это исправить