简体   繁体   English

网站无法使用IIS管理器在IIS 7中工作

[英]Website not working in IIS 7 using the IIS Manager

I have Microsoft Windows server 2008 R2 and have the IIS 7 running. 我有Microsoft Windows Server 2008 R2,并且正在运行IIS 7。

I have coded a web application on a seperate laptop and would like to publish it now on my server (serves as AD, DNS, File Server, IIS) that runs locally and has no external access. 我已经在单独的笔记本电脑上编写了Web应用程序的代码,现在想将其发布在本地运行且没有外部访问权限的服务器(用作AD,DNS,文件服务器,IIS)上。 We will be using the application internally only. 我们将仅在内部使用该应用程序。

I have followed the steps to install a website on IIS, however, it does not work. 我已经按照步骤在IIS上安装网站,但是,它无法正常工作。 Below are the steps I have done. 以下是我已完成的步骤。

Created a folder hierarchy and pasted the code files there. 创建一个文件夹层次结构,并将代码文件粘贴到此处。 (check below image. The code files are inside wwwroot) (检查下图。代码文件位于wwwroot中)

文件夹层次结构已创建

Create a new website from the IIS Manager as the below image. 如下图所示,从IIS管理器创建一个新网站。

IIS管理器配置

The wwwroot folder has SYSTEM permission and it inherits the permissions from the parent. wwwroot文件夹具有SYSTEM权限,并且从父级继承权限。 (Does it need to have other permissions?!?) (是否需要其他权限?!?)

Whenever I visit the website, I get an error that the page is not found. 每当我访问该网站时,都会收到一个错误消息,即找不到该页面。

错误

UPDATE 更新

Upon @Ravi A's answer below, I have tried his steps as the below image, but the username is not found and the error persists. 在以下@Ravi A的回答下,我尝试了下图所示的步骤,但是未找到用户名并且错误仍然存​​在。 用户名错误

Any ideas what is wrong? 任何想法有什么问题吗?

windows iis website Windows IIS网站

You need to add a binding in your DNS ie ping mysite.local should resolve to the server IP, in your case since it's a intranet it should resolve to 192.168.1.253. 您需要在DNS中添加绑定,即ping mysite.local应该解析为服务器IP,在您的情况下,因为它是Intranet,因此应解析为192.168.1.253。

See here on how to do it. 有关如何执行的信息, 请参见此处 You need access to DNS Manager. 您需要访问DNS管理器。

Also since you are not clear on DNS mapping leave the hostname empty and use machine name or IP to browse the site. 同样,由于您不清楚DNS映射,因此请将主机名保留为空,并使用计算机名或IP浏览站点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM