How to change the SonarQube-URL from “http://localhost:9000” to something like “http://XXX:9000”?

試著忘記壹切 提交于 2019-12-14 03:03:12

问题


I want to analyze Java-projects with SonarQube.

SonarQube is running on a server. I can connect to that server remotly. SonarQube is accessible on "http://localhost:9000". I want now to change that URL to something like "http://XXX:9000". I read that this is possible with the "Server base URL"-field under "Administration" --> "General Settings" in SonarQube. But it doesn't work... If I type this in my browser, then only the loading screen is shown. On "http://localhost:9000" it is still reachable. Why??? So, how can I change the URL to reach the SonarQube UI on another URL?

PS: SonarQube-Version is 7.9.1.


回答1:


If you want just to access your server locally, you can add XXX in your hosts file. Then all network requests to XXX will be mapped to localhost. But if you want to make it accessible from the internet by address XXX you need to register DNS and set up it to map to your server



来源:https://stackoverflow.com/questions/58205872/how-to-change-the-sonarqube-url-from-http-localhost9000-to-something-like

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!