> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/instance-administration/server-base-url.md).

# Server base URL

Configuring your base URL in SonarQube Server 2026.5.

You must configure your base URL in the SonarQube Server. This URL must be reachable by your build agent (e.g., GitHub-hosted runners). Otherwise, integration and authentication features will not work correctly, the URLs generated in reports and emails will be wrong, etc.

{% hint style="warning" %}
If you want to delegate the SonarQube Server user authentication to an OAUTH provider (GitHub, Bitbucket, GitLab, SAML), you should use HTTPS for security reasons. This means that the SonarQube Server instance should be secured behind a proxy (see [Reverse proxy and network security](/sonarqube-server/server-installation/network-security/securing-behind-proxy.md)).
{% endhint %}

{% hint style="info" %}
The SonarQube base URL needs to be a public URL if SonarQube expects to receive information from an external system. For more information, see [Networking requirements](/sonarqube-server/server-installation/networking-requirements.md).
{% endhint %}

To configure the server base URL in SonarQube Server:

1. Go to **Administration** > **Configuration** > **General settings** > **General** > **General**.
2. In **Server base URL**, set your SonarQube Server instance’s URL.

<figure><img src="https://content.gitbook.com/content/mX1WoFEHhJp6VdSbyTDi/blobs/0CY5swHAOPb64c0RoexO/admin-server-url.png" alt="Configuring the server based url in the administration settings"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonarsource.com/sonarqube-server/instance-administration/server-base-url.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
