What Can I Do If the Error Message "Bad Request - Invalid Hostname" Is Displayed When I Use a Windows ECS to Access an IIS Website?
Symptom
When I use a Windows ECS to access an Internet Information Services (IIS) website, an error message "Bad Request - Invalid Hostname" is displayed, as shown in Figure 1.
Possible Causes
In the IIS Manager, if the number of configured websites is greater than or equal to 100, no sites will be activated and the error message "Bad Request - Invalid Hostname" will be displayed when IIS is started.
Solution
- Log in to the Windows ECS.
- Choose Start > Windows Administrative Tools > Internet Information Services (IIS) Manager.
- On the displayed page, select the target server and double-click Configuration Editor.
Figure 2 Internet Information Services (IIS) Manager
- Select the system.applicationHost/webLimits section.
Figure 3 Configuration Editor
- Set dynamicRegistrationThreshold to 100.
Figure 4 Setting the threshold
- Access the website again.
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.
Chatbot