错误的请求 - 无效的主机名IIS7 [英] Bad Request - Invalid Hostname IIS7

查看:1311
本文介绍了错误的请求 - 无效的主机名IIS7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在端口8080上点击我的网络应用时,我收到以下错误

When I try to hit my web app on port 8080 I get the following error


错误请求 - 无效主机名

HTTP错误400.请求主机名无效。

Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.

我甚至不知道从哪里开始诊断此问题

I don't even know where to begin to diagnose this problem

推荐答案

你检查绑定是IIS吗? (inetmgr.exe)它可能未被注册为接受8080上的所有主机名。

Did you check the binding is IIS? (inetmgr.exe) It may not be registered to accept all hostnames on 8080.

例如,如果你将其设置为mysite.com:8080并点击它localhost:8080,IIS将获取请求,但没有匹配的主机名绑定,因此它拒绝。

For example, if you set it up for mysite.com:8080 and hit it at localhost:8080, IIS will get the request but not have a hostname binding to match so it rejects.

除此之外,您应该检查IIS日志(C:\\服务器上的\\inetpub \logs \wmsvc#),看看你是否看到了你的请求。然后你就会知道你的客户端或服务器本身是否存在问题。

Outside of that, you should check the IIS logs (C:\inetpub\logs\wmsvc#) on the server and see if you are seeing your request. Then you'll know if its a problem on your client or on the server itself.

这篇关于错误的请求 - 无效的主机名IIS7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆