Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: tiny tweaks

...

Code Block
ProxyRequests Off
ProxyPreserveHost On
<VirtualHost *:80>
  ServerName www.public_sonar.com
  ServerAdmin admin@somecompany.com
  ProxyPass / http://private_sonar_host:sonar_port/
  ProxyPassReverse / http://www.public_sonar.com/
  ErrorLog logs/somecompany/sonar/error.log
  CustomLog logs/somecompany/sonar/access.log common
</VirtualHost>

If the url URL of the SonarQube 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:

...

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

Running SonarQubebehind SonarQube behind Nginx

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

...

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