What steps will reproduce the problem?
1. Set: server.httpPort = 8000; server.httpsPort = 0
2. Logon to gitblit (http://{HOST_NAME}:8000/
3. Navigate to repositories.
4. Open a repository
What is the expected output? What do you see instead?
Expected Output:
Repository URL = http://{USERNAME}@{HOST_NAME}:8000/r/{REPOSITORY_NAME}.git
What I See:
Repository URL = http://{USERNAME}@{HOST_NAME}/r/{REPOSITORY_NAME}.git
What version of the product are you using? On what operating system?
Version #1.6.0, just upgraded from v#1.5.1
Please provide any additional information below.
This also affects RSS feeds.
Generating the URL is a little tricky; there are several factors which can influence
it. If given no other inputs, Gitblit will generate a url based on the request url
information and what it knows about the running services & ports. So if you browsed
to localhost, then you would see localhost urls. If you browsed to 127.0.0.1, then
you'd see 127.0.0.1 urls. This works fine until you want to "fix" the base url for
permalinks OR you are running behind a reverse proxy. Gitblit supports tweaks for
both of these scenarios.
In your case, you have specified web.canonicalUrl. If this url is specified, the hostname
and port of this url overrule anything else. This url is also used to generate permalinks
in ticket notifications for emails and plugins. It's actually a pretty important setting.
I think if you specify :port in this setting you will have more luck.
Originally reported on Google Code with ID 453
Reported by
Spitfire5592
on 2014-06-20 14:23:00- _Attachment: [gitblit.properties](https://storage.googleapis.com/google-code-attachments/gitblit/issue-453/comment-0/gitblit.properties)_
The text was updated successfully, but these errors were encountered: