portal local-server
Syntax
portal local-server { http | https server-policy policy-name }
undo portal local-server { http | https }
View
System view
Default level
2: System level
Parameters
http: Specifies that the local portal server use HTTP to exchange authentication packets with clients.
https: Specifies that the local portal server use HTTPS to exchange authentication packets with clients.
server-policy policy-name: Specifies the SSL server policy to be associated with the HTTPS service. policy-name indicates an SSL server policy name, a case-insensitive string of 1 to 16 characters.
Description
Use portal local-server to configure the protocol type to be supported by the local portal server and load the default authentication page file.
Use undo portal local-server to cancel the configuration.
By default, the local portal server does not support any protocol type.
When executing this command, the local portal server will load the default authentication page file, which is supposed to be saved in the root directory of the device. To ensure that the local portal server uses the user-defined default authentication pages, edit and save them properly before executing this command. Otherwise, the system default authentication pages will be used.
If you specify HTTP in this command, the redirection URL for HTTP packets is in the format of http://IP address of the device/portal/logon.htm, and clients and the portal server exchange authentication information through HTTP.
If you specify HTTPS in this command, the redirection URL for HTTP packets is in the format of https://IP address of the device/portal/logon.htm, and clients and the portal server exchange authentication information through HTTPS.
You cannot remove an SSL server policy using the undo ssl server-policy command if the policy has been referenced by the HTTPS service.
On the device, all the SSL server policies referenced by the HTTPS service must be the same.
If an online portal user exists on the device, you cannot remove or change the configured protocol type, or modify the SSL server policies referenced.
To change the SSL server policy referenced by HTTPS service, you must cancel the HTTPS configuration using the undo portal local-server https command, and then specify the desired SSL server policy.
Related commands: display portal local-server and ssl server-policy.
Examples
# Configure the local portal server to support HTTP.
<Sysname> system-view [Sysname] portal local-server http
# Configure the local portal server to support HTTPS and reference SSL server policy policy1, which has been configured already.
<Sysname> system-view [Sysname] portal local-server https server-policy policy1
# Change the referenced SSL server policy to policy2.
[Sysname] undo portal local-server https [Sysname] portal local-server https server-policy policy2