> Source: https://docs.cyberelements.io/bastion/4.7/sv/Installation/HTML5Gateway/Introduction/

# Installation of the HTML5 Gateway

The HTML5 Gateway provides web access without agent on the user side: it converts RDP, SSH and VNC protocols into web flows. The HTML5 applications are published through the Mediation Controller, which relays the users' connections towards the service of the HTML5 Gateway.

## Placements

The HTML5 Gateway is installed in one of the two following placements; in both cases, it connects to the Mediation Controller through a TLS tunnel.

**With an Edge Gateway**

> The HTML5 Gateway is installed on the server of an Edge Gateway, or in the same network zone. The Mediation Controller reaches its service through the TLS tunnel of the Edge Gateway.

**In the DMZ**

> The HTML5 Gateway is installed separately, on its own server in the DMZ, without the Edge Gateway components: see [Installing on a dedicated Debian server](https://docs.cyberelements.io/bastion/4.7/sv/Installation/HTML5Gateway/InstallDebian/). The Mediation Controller connects directly to its service, without going through an Edge Gateway.

## Variants

The prerequisites of each variant (machine, network, certificates) are described in [Prerequisites of the HTML5 Gateway](https://docs.cyberelements.io/bastion/4.7/sv/Installation/HTML5Gateway/Prerequisites/).

| Variant | Installation | Placements |
|---|---|---|
| **Debian, on the server of an Edge Gateway** | HTML5 Gateway components of the [Standalone](https://docs.cyberelements.io/bastion/4.7/sv/Installation/Standalone/FromScratch/InstallEdgeGateway/#installation-of-html5-gateway-components) or [Cluster](https://docs.cyberelements.io/bastion/4.7/sv/Installation/Cluster/FromScratch/InstallEdgeGateway/#installation-of-html5-gateway-components) Edge Gateway | With an Edge Gateway |
| **Virtual appliance of the Edge Gateway** | [Standalone](https://docs.cyberelements.io/bastion/4.7/sv/Installation/Standalone/FromAppliances/InstallEdgeGateway/), [Cluster](https://docs.cyberelements.io/bastion/4.7/sv/Installation/Cluster/FromAppliances/InstallEdgeGateway/) | With an Edge Gateway |
| **Debian, on a dedicated server** | [Installing on a dedicated Debian server](https://docs.cyberelements.io/bastion/4.7/sv/Installation/HTML5Gateway/InstallDebian/) | With an Edge Gateway or in the DMZ |

## Configuration of the Mediation Controller

Each HTML5 Gateway requires a setting of the web server of the Mediation Controller (`/etc/ipdiva/httpd/commonParameters.extra.conf` file), on **each** Mediation Controller of the platform. It is described with each procedure:

- HTML5 Gateway installed with an Edge Gateway: [Standalone](https://docs.cyberelements.io/bastion/4.7/sv/Installation/Standalone/FromScratch/InstallEdgeGateway/#configurations-prior-to-connecting-the-html5-gateway), [Cluster](https://docs.cyberelements.io/bastion/4.7/sv/Installation/Cluster/FromScratch/InstallEdgeGateway/#configurations-prior-to-connecting-html5-gateways), [multi-node](https://docs.cyberelements.io/bastion/4.7/sv/Installation/MultiNode/InstallEdgeGateway/);
- HTML5 Gateway on a dedicated Debian server: [Configuration of the Mediation Controller](https://docs.cyberelements.io/bastion/4.7/sv/Installation/HTML5Gateway/InstallDebian/#configuration-of-the-mediation-controller).

> **Recommendation**
>
> The security hardening guide details the hardening of the Apache configuration, of the TLS protocols and of the Content Security Policy: see [Apache](https://docs.cyberelements.io/bastion/4.7/sv/Security/Apache/), [TLS 1.2 and TLS 1.3](https://docs.cyberelements.io/bastion/4.7/sv/Security/Tls/) and [Content Security Policy](https://docs.cyberelements.io/bastion/4.7/sv/Security/ContentSecurityPolicy/).
