---
title: "Server configuration"
url: "https://www.sensomcp.com/en/doc/advanced-administration/server-configuration"
lang: "en-GB"
description: "Senso MCP server configuration: no special settings are needed on most hosting plans; two points to bear in mind depending on your configuration."
category: "Advanced Administration"
author: "Fred Oliver"
published: "2026-09-07T15:00:15+00:00"
modified: "2026-09-28T07:36:14+00:00"
---

# Server configuration

- Abstract: This page covers Senso MCP server configuration, which is generally unnecessary: routing OAuth discovery documents under .well-known to index.php on nginx, sufficient URL rewriting on Apache, and excluding the MCP server path from ModSecurity or WAF rules that return a 403.

Configure nginx/Apache and WAF exclusions for the MCP server.

Advanced

- regle-well-known-nginx, .well-known rule (nginx)
- apache, Apache
- exclusions-modsec-waf, ModSec/WAF exclusions

On most hosting platforms, Senso MCP works without any special server configuration. However, two points require attention depending on your setup.

## .well-known rule (nginx)

OAuth discovery documents (`/.well-known/oauth-*`) are served by a system plugin, and therefore by PHP: these URLs simply need to be routed to `index.php`. On a “standard” server with a generic `try_files $uri /index.php` rule, no specific directive is required.

## Apache

On Apache, Joomla’s URL rewriting is generally sufficient: no additional configuration is required for `.well-known` documents.

## ModSec/WAF exclusions

Some web application firewalls (WAFs, ModSecurity) block the client’s user agent and return a **403** for `/api/…/mcp`. In that case, exclude the MCP server path from the relevant rules, using a path-based exclusion rather than an IP-based one.
