Advanced configuration using the EricomSecureGateway.Config file
- Last UpdatedDec 09, 2024
- 1 minute read
Back up the current EricomSecureGateway.Config file before making any changes.
To configure the settings of the built-in Web server, open the EricomSecureGateway.Config file using a text editor. Each folder in the WebServer directory may have a default document assigned for it, and may also be restricted so that end users cannot access it.

For example, the settings below will configure the following:
-
Sets the View folder as the default folder
-
Sets the view.html as the default document for the View folder
-
Restricts access to any unlisted folders in the directory
-
Prohibits access to the Blaze and MyCustom folders.
<<Section name="InternalWebServer">
<Property name="Enabled" type="bool" value="true" />
<Property name="ForwardOriginalHostHeader" type="bool" value="false" />
<Property name="ForwardFaviconRequest" type="bool" value="false" />
<Property name="XFrameOptions" type="string" value="" />
<Property name="ContentSecurityPolicy" type="string" value="" />
<Property name="AccessControlAllowOrigin" type="string" value="*" />
<Property name="ClientSessionCookieTimeoutMinutes" type="int" value="60" />
<Property name="AllowAccessForNonListedFolders" type="bool" value="false" />
<Property name="DefaultFolder" type="string" value="AccessAnywhere" />
<Property name="FolderList" type="list(WebServerFolder)">
<Value>AccessAnywhere,start.html,True</Value>
<Value>Blaze,blaze.zip,True</Value>
<Value>Admin,login.html,True</Value>
<Value>WebConnect,start.html,True</Value>
<Value>SG,,True</Value>
</Property>
</Section>