Advanced installation features
Explains how to perform advanced setup on SonarQube server including web connection parameter change.
Last updated
Was this helpful?
Explains how to perform advanced setup on SonarQube server including web connection parameter change.
This section explains how to:
Change the web server connection parameters
Modify the default configuration of the server installation
You can also:
In case of a ZIP installation: run SonarQube as a service on Windows (see the Securing the server behind a proxy article) or Linux.
Run SonarQube behind a proxy
Monitor and adjust Instance monitoring
Install a Install a plugin.
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.host
SONAR_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.port
SONAR_WEB_PORT
TCP port for incoming HTTP connections.
Default value: 9000
sonar.web.context
SONAR_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)
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.
Last updated
Was this helpful?
Was this helpful?

