NOTE: This document does not apply to Web Service versions 19.09 and higher.
Best Practice is to use the latest version of Web Service available.
The way the web service handles HTTP requests when HTTPS is configured can be controlled with the webserver.tls.httpPolicy key:
Open the following file in a text editor:
Windows: C:\ProgramData\Webservice\conf\wfe.json
Linux: /etc/webservice/wfe.json
Add the “httpPolicy” line as shown below.
{<br>
"webserver": {<br>
"listen": 80,<br>
"tls": {<br>
"listen": 443,<br>
"httpPolicy": "redirect",<br>
[...]<br>
}<br>
}<br>
}
The key can be one of the following values:
- “redirect” will cause HTTP traffic to be redirected to HTTPS
- “disable” will reject any requests not sent over HTTPS
NOTE: This key will only take effect if after a Web Service restart, and if SSL is configured.
<br>