This version of the SonarQube documentation is no longer maintained. It relates to a version of SonarQube that is not active.

See latest version
Start Free
10.3 | Setup and upgrade | Install the server | Advanced installation features

Advanced installation features

On this page

This section explains how to: 

  • Change the web server connection parameters
  • Modify the default configuration of the server installation

You can also:

Changing the web server connection parameters

To set up the web server connection:

  • For a server installation from the ZIP file: Verify and change if necessary the following properties in the SonarQube Server configuration file (<sonarqubeHome>/conf/sonar.properties).
  • For a server installation from the Docker image: Verify and change if necessary the following environment variables.
Property (ZIP installation)Environment variable (Docker installation)Description
sonar.web.hostSONAR_WEB_HOST

For servers with more than one IP address, this property specifies which address will be used for listening on the specified ports. 

Default value: 0.0.0.0 (ports will be used on all IP addresses associated with the server)

sonar.web.portSONAR_WEB_PORT

TCP port for incoming HTTP connections.

Default value: 9000

sonar.web.contextSONAR_WEB_CONTEXT

Web context specifying the path at which to serve SonarQube. For example, with sonar.web.port=9000 and sonar.web.context=/sonarqube, you will access the web interface at http://localhost:9000/sonarqube.

Example: /sonarqube (must start with a forward slash)

Default value: empty (root context)

Modifying the default configuration of a server installation

To modify the default configuration:

  • For a server installation from the ZIP file: Change the sonar properties in the SonarQube Server configuration file (<sonarqubeHome>/conf/sonar.properties).
  • For a server installation from the Docker image: Change the sonar environment variables.

Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License