# 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:

* In case of a ZIP installation: run SonarQube as a service on Windows (see the [#securing-the-server-behind-a-proxy](https://docs.sonarsource.com/sonarqube-server/10.4/configure-and-operate-a-server/operating-the-server#securing-the-server-behind-a-proxy "mention") article) or [Linux](https://docs.sonarsource.com/sonarqube/9.6/setup-and-upgrade/configure-and-operate-a-server/operating-the-server/).
* Run SonarQube [behind a proxy](https://docs.sonarsource.com/sonarqube/9.9/setup-and-upgrade/configure-and-operate-a-server/operating-the-server/)
* Monitor and adjust [instance](https://docs.sonarsource.com/sonarqube-server/10.4/instance-administration/monitoring/instance "mention")
* Install a [install-a-plugin](https://docs.sonarsource.com/sonarqube-server/10.4/setup-and-upgrade/install-a-plugin "mention").

## Changing the web server connection parameters <a href="#change-server-connection-parameters" id="change-server-connection-parameters"></a>

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                               | <p>For servers with more than one IP address, this property specifies which address will be used for listening on the specified ports.</p><p><strong>Default value</strong>: 0.0.0.0 (ports will be used on all IP addresses associated with the server)</p>                                                                                                                                       |
| sonar.web.port                  | SONAR\_WEB\_PORT                               | <p>TCP port for incoming HTTP connections.</p><p><strong>Default value</strong>: 9000</p>                                                                                                                                                                                                                                                                                                          |
| sonar.web.context               | SONAR\_WEB\_CONTEXT                            | <p>Web context specifying the path at which to serve SonarQube. For example, with <code>sonar.web.port=9000</code> and <code>sonar.web.context=/sonarqube</code>, you will access the web interface at <http://localhost:9000/sonarqube>.</p><p><strong>Example</strong>: <code>/sonarqube</code> (must start with a forward slash)</p><p><strong>Default value</strong>: empty (root context)</p> |

## Modifying the default configuration of a server installation <a href="#modify-default-config" id="modify-default-config"></a>

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](https://docs.sonarsource.com/sonarqube-server/10.4/setup-and-upgrade/configure-and-operate-a-server/environment-variables "mention").
