# Server base URL

You must configure your SonarQube base URL in your SonarQube instance, otherwise, integration and authentication features will not work correctly, the URLs generated in reports and emails will be wrong, etc.

{% hint style="info" %}
The SonarQube base URL needs to be a public URL if SonarQube expects to receive information from an external system. This is basically only relevant if you use SCIM (since it requires SonarQube to be reachable by the Identity Provider).
{% endhint %}

{% hint style="warning" %}
If you want to delegate the SonarQube user authentication to an OAUTH provider (GitHub, Bitbucket, GitLab, SAML): you should use HTTPS for security reasons. This means that the SonarQube instance should be [Operating the server](/sonarqube-server/9.9/setup-and-upgrade/configure-and-operate-a-server/operating-the-server.md).
{% endhint %}

To configure the server base URL in your SonarQube instance:

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


---

# 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/9.9/instance-administration/server-base-url.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.
