Hosting SonarQube in an nginx location via reverse proxy - sonar.web.context broken?

1,596 views
Skip to first unread message

lukasz.do...@gmail.com

unread,
Mar 17, 2016, 6:48:58 AM3/17/16
to SonarQube
Hello,

I'm trying to prepare a set of development webtools for my company, hosted on a single server. Due to restrictive firewall policies, I'm not able to allow traffic through exotic ports such as 9000. To solve that, I'm trying to use nginx to serve locations /jenkins /sonar /nexus etc. on port 80 through nginx's proxy functionality.

However, it seems that Sonar didn't play well with being placed in a location. This is how it looks currently when viewed from the /sonar location on : http://i.share.pho.to/147f0de5_o.png . It's probably due to it being unable to find css in /sonar/css and trying to use /css instead.

In this SO question author had a similar problem and used sonar.web.context=/sonar parameter to solve his issue. However, I couldn't find that parameter in my sonar.properties to uncomment and when I added it by hand, it doesn't seem to work.

Any suggestions? I'm using Sonarqube 5.4 on RHEL 7.2.

lukasz.do...@gmail.com

unread,
Mar 17, 2016, 6:53:19 AM3/17/16
to SonarQube, lukasz.do...@gmail.com
Realized I forgot to include link to the SO question, here it is: http://stackoverflow.com/questions/25978092/sonarqube-under-nginx-sub-location

Scott B.

unread,
Mar 17, 2016, 7:11:38 AM3/17/16
to SonarQube, lukasz.do...@gmail.com
Use SonarQube 5.3. See https://jira.sonarsource.com/browse/SONAR-7122

The "sonar.web.context" parameter was removed in 5.4.

lukasz.do...@gmail.com

unread,
Mar 17, 2016, 8:06:18 AM3/17/16
to SonarQube, lukasz.do...@gmail.com
Thanks for quick reply! It's weird to straight up lose functionality like that, though... In the linked thread it seems like it's gone for good. So I guess we're gonna be stuck with version 5.3.

Fabrice Bellingard

unread,
Mar 22, 2016, 6:32:13 AM3/22/16
to lukasz.do...@gmail.com, SonarQube
FYI guys => https://jira.sonarsource.com/browse/SONAR-7494


Best regards,

Fabrice BELLINGARD | SonarSource
SonarQube Platform Product Manager
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/b954863f-e41d-47b0-9eb4-d52f4560e7c7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages