Git Url Commits/Source Link wrong

Issue #690 open
S. Weigand created an issue


when you open the Url from a Git Repository under Repositories and try to open the Commits or Source Link it points to localhost:8080 (see attachment). Even for new created ones.

The base url is set to https://scm.domain/scm and force base-url is off.

For SVN Repositories the links are correct. It only occurs for GIT.

Best Regards, Sascha

Comments (9)

  1. Sebastian Sdorra repo owner
    • changed status to open

    It looks like the git plugin uses the url from the request and the svn plugin uses the baseurl. Do you use a reverse proxy?

  2. S. Weigand reporter

    We use apache with mod_proxy like you described in your wiki. The only thing i forgot was to uncomment the forwarded line, but this changed only the link from localhost to the serveradress on Port 80 and not Port 443.

    This is our apache config

             ServerName scm.domain
             SSLEngine On
             SSLCertificateFile /etc/apache2/ssl.crt/scm.pem
             SSLCertificateKeyFile /etc/apache2/ssl.key/scm.key
             SSLCertificateChainFile /etc/apache2/ssl.crt/cachain.pem
              RewriteEngine on
              RewriteCond %{REQUEST_URI} ^/$
              RewriteRule (.*) /scm/ [R=301]
              RewriteLog /var/log/apache2/rewrite.log
              RewriteLogLevel 2
            ProxyPass /scm http://localhost:8080/scm
            ProxyPassReverse /scm http://localhost:8080/scm
            #ProxyPassReverse  /scm  http://servername:8080/scm
      <Location /scm>
        Order allow,deny
        Allow from all
  3. mpo

    This issue still persists in 1.51 with BaseURL configured, with or without proxy configuration. The only difference i see since upgrading to 1.51 is, instead of localhost:8080 the links point to scm.domain.tld:8080, not taking into account on which port it runs or if SSL is configured. The links can be adjusted manually but that's not ... ideal ...

  4. Log in to comment