Configuring HTTP headers
You can configure the Amazon DCV server to send additional HTTP response headers to the Amazon DCV client when users connect to a session using the web browser client. The response headers can provide additional information about the Amazon DCV server that users are connecting to.
Topics
Configuring HTTP headers on a Windows Amazon DCV Server
To configure the HTTP headers on Windows, configure the web-extra-http-headers
parameter using the Windows Registry
Editor.
To configure the HTTP headers on Windows
-
Open the Windows Registry Editor.
-
Navigate to the HKEY_USERS/S-1-5-18/Software/GSettings/com/nicesoftware/dcv/connectivity/ key.
-
In the navigation pane, open the context (right-click) menu for the connectivity key. Then, choose New, String.
-
For Name, enter
web-extra-http-headers
and press Enter. -
Open the web-extra-http-headers parameter. For Value data, enter the HTTP header name and value in the following format.
[("
header-name
", "header-value
")]To specify multiple headers, add them in a comma-separated list.
[("
header1-name
", "header1-value
"), ("header2-name
", "header2-value
")] -
Choose OK and close the Windows Registry Editor.
Configuring HTTP headers on a Linux Amazon DCV Server
To configure the HTTP headers on Linux, configure the web-extra-http-headers
parameter in the dcv.conf
file.
To configure the HTTP headers on Linux
-
Open
/etc/dcv/dcv.conf
with your preferred text editor. -
Locate the
[connectivity]
section. Specify the HTTP header name and value in the following format.[connectivity] web-extra-http-headers=[("
header-name
", "header-value
")]To specify multiple headers, add them in a comma-separated list.
[connectivity] web-extra-http-headers=[("
header1-name
", "header1-value
"), ("header2-name
", "header2-value
")] -
Save and close the file.