Citrix Systems Network Router NETSCALER 9.3 用户手册

下载
页码 195
4. Add an HTTPS vserver. At the NetScaler command prompt, type:
add lb vserver <virtualServerName> <protocol> <IPAddress> <port>
Example
add lb vserver HTTPS_WI SSL 10.102.29.3 443
For more information, see “Adding an SSL-Based Virtual Server” in the “Secure
Sockets Layer (SSL) Acceleration” chapter of the Citrix NetScaler Traffic
Management Guide
 at 
5. Bind the Web interface service to the HTTPS vserver. At the NetScaler command
prompt, type:
bind lb vserver <virtualServerName> <serviceName>
Example
bind lb vserver HTTPS_WI WI_Loopback_Service
For more information, see “Binding Services to the Virtual Server” in the “Secure
Sockets Layer (SSL) Acceleration” chapter of the Citrix NetScaler Traffic
Management Guide
 at 
6. Create an SSL certificate key pair. At the NetScaler command prompt, type:
add ssl certkey <certificate-KeyPairName> -cert <certificateFileName> -key
<privateKeyFileName>
Example
add ssl certkey SSL-Certkey-1 -cert /nsconfig/ssl/test1.cer -
key /nsconfig/ssl/test1
For more information, see “Adding a Certificate Key Pair” in the “Secure Sockets
Layer (SSL) Acceleration” chapter of the Citrix NetScaler Traffic Management
Guide
 at 
7. Bind the SSL certificate key pair to the HTTPS vserver. At the NetScaler command
prompt, type:
bind ssl vserver <vserverName> -certkeyName <certificate- KeyPairName>
Example
bind ssl vserver HTTPS_WI -certkeyName SSL-Certkey-1
For more information, see “Binding an SSL Certificate Key Pair to the Virtual
Server” in the “Secure Sockets Layer (SSL) Acceleration” chapter of the Citrix
NetScaler Traffic Management Guide
 at 
.
8. Add a rewrite action. At the NetScaler command prompt, type:
add rewrite action <name> <type> <target> [<stringBuilderExpr>] [(-pattern
<expression>]
Example
add rewrite action Replace_HTTP_to_HTTPS INSERT_AFTER 
"HTTP.RES.HEADER(\"Location\").Value(0).Prefix(4)" "\"s\""
Chapter 6
Web Interface
162