How Do I Configure the Client Protocol and Server Protocol?
This FAQ describes how to configure the client and server protocol.
WAF provides various protocol types. Use www.example.com as an example. You can configure your WAF instance using any of the following methods:
HTTP Access - 302 Redirection Response
Set Client Protocol and Server Protocol to HTTP. Figure 1 shows an example.
![](https://support.huaweicloud.com/intl/en-us/waf_faq/public_sys-resources/notice_3.0-en-us.png)
This configuration allows web visitors to access http://www.example.com over HTTP only. If they access it over HTTPS, they will receive the 302 Found code and be redirected to http://www.example.com.
HTTPS Forcible Conversion
Set Client Protocol and Server Protocol to HTTPS. Figure 2 shows an example. When the HTTP protocol is used to access the server, all initial client requests are forcibly converted from HTTP to HTTPS.
![](https://support.huaweicloud.com/intl/en-us/waf_faq/public_sys-resources/notice_3.0-en-us.png)
- If web visitors access your website over HTTPS, the website returns a successful response.
- If web visitors access http://www.example.com over HTTP, they will receive the 301 Found code and are directed to https://www.example.com.
HTTP and HTTPS
Set Client Protocol and Server Protocol. Figure 3 shows an example.
![](https://support.huaweicloud.com/intl/en-us/waf_faq/public_sys-resources/notice_3.0-en-us.png)
- If web visitors access your website over HTTP, the website returns a successful response but no communication between the browser and website is encrypted.
- If web visitors access your website over HTTPS, the website returns a successful response and all communications between the browser and website are encrypted.
HTTPS Offloading
Set Client Protocol to HTTPS and Server Protocol to HTTP.
![](https://support.huaweicloud.com/intl/en-us/waf_faq/public_sys-resources/notice_3.0-en-us.png)
If web visitors access your website over HTTPS, WAF forwards the requests to your origin server over HTTP.
![Click to enlarge](https://support.huaweicloud.com/intl/en-us/waf_faq/en-us_image_0000001675139986.png)
Website Connect Issues FAQs
- How Do I Add a Domain Name/IP Address to WAF?
- Which Non-Standard Ports Does WAF Support?
- How Do I Use a Dedicated WAF Instance to Protect Non-Standard Ports That Are Not Supported by the Dedicated Instance?
- How Do I Configure Domain Names to Be Protected When Adding Domain Names?
- Do I Have to Configure the Same Port as That of the Origin Server When Adding a Website to WAF?
- How Do I Whitelist Back-to-Source IP Addresses of Cloud WAF?
- How Do I Configure Non-standard Ports When Adding a Protected Domain Name?
- What Data Is Required for Connecting a Domain Name/IP Address to WAF?
- How Do I Safely Delete a Protected Domain Name?
- How Long Will CNAME Records Be Retained After I Delete a Domain Name from WAF?
- Can I Change the Domain Name That Has Been Added to WAF?
- What Are the Precautions for Configuring Multiple Server Addresses for Backend Servers?
- Does WAF Support Wildcard Domain Names?
- Does WAF Protect Chinese Domain Names?
- How Do I Route Website Traffic to My Cloud WAF Instance?
- What Can I Do If the Message "Illegal server address" Is Displayed When I Add a Domain Name?
- Why Am I Seeing That My Domain Quota Is Insufficient When There Is Still Remaining Quota?
- Can I Configure Multiple Load Balancers for a Dedicated WAF Instance?
- Why Am I Seeing the "Someone else has already added this domain name. Please confirm that the domain name belongs to you" Error Message?
- How Do I Configure the Client Protocol and Server Protocol?
- Why Cannot I Select a Client Protocol When Adding a Domain Name?
- Can I Set the Origin Server Address to a CNAME Record If I Use Cloud WAF?
- How Do I Modify DNS Record on Huawei Cloud DNS?
- How Do I Verify Domain Ownership Using Huawei Cloud DNS?
- How Do I Configure the TXT Record on HUAWEI CLOUD DNS Service?
- What Are Impacts If No Subdomain Name and TXT Record Are Configured?
- How Do I Query a Domain Name Provider?
- How Do I Use A Records for Domain Name Resolution?
- What Are the Differences Between the Old and New CNAME Records?
- Can I Access a Website Using an IP Address After a Domain Name Is Connected to WAF?
- How Do I Test WAF?
- How Can I Forward Requests Directly to the Origin Server Without Passing Through WAF?
- Why Cannot the Protection Mode Be Enabled After a Domain Name Is Connected to WAF?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore