Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
Gerrit reverse proxy extra trailing slash

Have the followning conf in 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>

when I write https://search.gerrit.camel.se works fine the qusetion: when I wite http://search.gerrit.camel.se it redirectes me to https://search.gerrit.camel.se// with extra slash / How Can I fix that

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!