Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This section helps you configure SonarQubeTM if you want to run it behind a proxy. This can be done for security concerns or to consolidate multiple disparate applications.

Table of Contents

Icon

Running SonarQubeTM behind an Apache Proxy

We assume that you've already installed Apache 2 with module mod_proxy, that SonarQubeTM is running and available on http://privates_sonar_host:sonar_port/ and that you want to configure a Virtual Host for www.public_sonar.com.

At this point, edit the HTTPd configuration file for the www.public_sonar.com virtual host. Include the following to expose SonarQubeTM via mod_proxy at http://www.public_sonar.com/:

If the url of the SonarQubeTM server must have a context like http://www.public_sonar.com/sonar_context, in that case the following line must be uncommented in the sonar.properties configuration file to prevent using the Apache mod_rewrite:

And of course, the definition of the Apache virtual server must also be slightly updated :

Apache configuration is going to vary based on your own application's requirements and the way you intend to expose SonarQubeTM to the outside world. If you need more details about Apache HTTPd and mod_proxy, please see http://httpd.apache.org.

Running SonarQubeTM behind Nginx

We assume that you've already installed Nginx, that you are using a Virtual Host for www.somecompany.com and that SonarQubeTM is running and available on http://sonahost:sonarport/.

At this point, edit the Nginx configuration file. Include the following to expose SonarQubeTM at http://www.somecompany.com/:

Nginx configuration is going to vary based on your own application's requirements and the way you intend to expose SonarQubeTM to the outside world. If you need more details about Nginx, please see http://nginx.org.

  • No labels