[英]unable to view my IIS hosted site from remote machine but IIS page open
The IP of the machine is suppose 104.68.125.105
机器的IP为
104.68.125.105
In this machine, I configured the IIS server and successfully opened my web app http://merchantcalc/content/lateFine.aspx from inside this machine. 在这台机器上,我配置了IIS服务器,并从这台机器内部成功打开了Web应用程序http://merchantcalc/content/lateFine.aspx 。 This app has default port ie 80
该应用程序具有默认端口,即80
But when I tried to open the same web app from remote computer, via url http://104.68.125.105/merchantcalc/content/lateFine.aspx 但是,当我尝试通过url http://104.68.125.105/merchantcalc/content/lateFine.aspx从远程计算机打开同一Web应用程序时
I am getting error as :: 我收到错误消息:::
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
when I open http://103.69.125.101/
from remote machine, its showing the IIS
page. 当我从远程计算机打开
http://103.69.125.101/
时,其显示IIS
页面。
But why can't I open the web apps? 但是为什么我不能打开Web应用程序? What configuration should I make in IIS to open my web app ?
我应该在IIS中进行什么配置才能打开Web应用程序?
As Mark said, if you can access http://merchantcalc/content/lateFine.aspx , then you should try http://103.xx.xxx.xxx/content/lateFine.aspx . 正如Mark所说,如果您可以访问http://merchantcalc/content/lateFine.aspx ,那么您应该尝试http://103.xx.xxx.xxx/content/lateFine.aspx 。
Did you host the web site under another website or you just publish the web app as a virtual application under your Default web site? 您是否将该网站托管在另一个网站下,或者只是将该网站应用发布为默认网站下的虚拟应用程序? It seems that when you access the website, http.sys is routing the request to Default Web Site.
似乎当您访问该网站时,http.sys会将请求路由到“默认网站”。 So if this is not the right site that should be routed.
因此,如果这不是应该路由的正确站点。 You could try to disable Default Web Site and bind your ip address to your web app.
您可以尝试禁用默认网站并将IP地址绑定到您的Web应用程序。
Since there are various kinds of 404 error. 由于存在各种404错误。 You could check the sub-status code by enabling IIS detailed error or failed request tracing.
您可以通过启用IIS详细错误或失败的请求跟踪来检查子状态代码。
PS: Expose your public IP address is not recommended. PS:不建议公开您的公共IP地址。
If you could provide more information, we may get to know how to fix this 404 error. 如果您可以提供更多信息,我们可能会知道如何解决此404错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.