Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Code Block
languagetext
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>

...

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

Advanced Configuration

Advanced SSL properties and AJP are supported. See SONARQUBE_HOME/conf/sonar.properties for the related properties and their descriptions.

Note that these features were contributed by the SonarQube Community, and are not supported under any SonarSource Edition.