Latest | Setup and upgrade | Install the server | Advanced installation features

On this page

Advanced installation features

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.

© 2008-2023, SonarSource S.A, Switzerland. Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution-NonCommercial 3.0 United States License. SONARQUBE is a trademark of SonarSource SA. All other trademarks and copyrights are the property of their respective owners.

Creative Commons License