# 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.5/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.5/instance-administration/monitoring/instance "mention")
* Install a [install-a-plugin](https://docs.sonarsource.com/sonarqube-server/10.5/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.5/setup-and-upgrade/configure-and-operate-a-server/environment-variables "mention").


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/10.5/setup-and-upgrade/install-the-server/advanced-installation-features.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
