> Source: https://docs.cyberelements.io/bastion/4.7/pl/Usage/Reference/ConfigurationFiles/MediationController/CommonParametersExtra/

# commonParameters.extra.conf

`commonParameters.extra.conf` is the file where you add your own Apache directives to the web interfaces of the Mediation Controller. It is the only Apache file of the Mediation Controller that is meant to be written by you: everything else under `/etc/ipdiva/httpd/` is either delivered by a package or generated by the product.

| Property | Value |
|---|---|
| **Component** | Mediation Controller |
| **Path** | `/etc/ipdiva/httpd/commonParameters.extra.conf` |
| **Owner and permissions** | `root`, `644` |
| **Package** | none, the file does not exist until you create it |
| **Format** | Apache directives |

> **The file is optional**
>
> The product includes it with `IncludeOptional`, so its absence is not an error. Create it when you need it, with the owner and permissions above.

## What it applies to

The directives you write here apply to **every virtual host that publishes Bastion**: the user portal, the administration console and the system console. They do not apply to the reverse proxy virtual hosts of your published applications, which have their own configuration.

The chain is the following, and it is worth knowing when a directive does not take effect:

| Level | File |
|---|---|
| the virtual host generated by the product | includes `commonParametersCleanroomOnly.conf` |
| that file | includes `commonParameters.conf`, then **your file**, then `webaccess.conf` |

Two consequences:

- your directives are read **after** the common parameters of the product, so a directive of the same name overrides theirs;
- they are read **before** `webaccess.conf`, which can therefore override yours in turn.

## What it is used for

The documented uses are:

- publishing an **HTML5 Gateway**: for HTML5 applications to work, the installation procedure has you add a `<Location>` section per HTML5 Gateway to this file: see the configuration prior to connecting the HTML5 Gateway, [in standalone](https://docs.cyberelements.io/bastion/4.7/pl/Installation/Standalone/FromScratch/InstallEdgeGateway/#configurations-prior-to-connecting-the-html5-gateway) or [in a cluster](https://docs.cyberelements.io/bastion/4.7/pl/Installation/Cluster/FromScratch/InstallEdgeGateway/#configurations-prior-to-connecting-html5-gateways);
- the **Content-Security-Policy** header: see [Content Security Policy](https://docs.cyberelements.io/bastion/4.7/pl/Security/ContentSecurityPolicy/).

Nothing prevents other directives, as long as they are valid at virtual host level.

## Applying a change

Check the syntax first, then reload the web server:

```
1
2
```

> **A syntax error stops the web server from starting**
>
> `configtest` is not a formality here: the file is included by every virtual host that publishes Bastion, so an invalid directive makes the whole web server refuse to start, and with it the three consoles. Reload only after `Syntax OK`.

## Upgrade

No package delivers this file, so an upgrade never overwrites it and never asks you anything about it. It is yours entirely, which also means that its content is **not** reviewed when the product changes: after an upgrade, check that the directives you added still match the configuration delivered by the product.
