新网站未在IIS 8.5中显示默认页面 [英] New website not showing default page in IIS 8.5

查看:1009
本文介绍了新网站未在IIS 8.5中显示默认页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS 8.5 for Windows 8.1上尝试在新创建的站点(新测试站点)上查看我的默认页面或其他Web应用程序时遇到了问题。我在'inetpub'文件夹之外包含了一个包含html页面(test.html)的目录。

I’m having trouble trying to view my default page or other web application on a newly created site (New Test Site) on IIS 8.5 for Windows 8.1. I included a directory that contains an html page (test.html) outside of the ‘inetpub’ folder.

添加网站窗口

物理路径:C:\ diayalcenters
类型: http
IP地址:所有未分配
端口:80

Physical Path: C:\royalcenters Type: http IP Address: All Unassigned Port: 80

我已将'test.html'页面排列在''列表顶部'默认文档'标签。

I already arranged the ‘test.html’ page to the top of the list of ‘Default Document’ tab.

默认列表页面

但是,当我在网络浏览器上运行新网站时,页面不会显示。它只显示错误页面。

However, when I ran the new website on a web browser, the page doesn’t appear. It only shows an error page.

我正在尝试使用我的电脑作为服务器运行网站,所以有人对如何在我的机器上运行新网站有任何想法?谢谢。

I’m trying to run the website with my computer as the server, so does anybody have any ideas on how to on how I can run the new website on my machine? Thank you.

推荐答案

首先要转到 http:// localhost / 并查看它是否有效。它应显示带有版本号的IIS欢迎页面。如果出现503错误,请检查默认应用程序池是否因某种原因而停止。如果其他错误需要在继续测试您的html页面之前修复这些错误。

first things first goto http://localhost/ and see if it works. It should show the IIS Welcome page with version number. If you get a 503 error check if the default app pool is stopped for some reason. If other errors then need to fix those before proceeding to test your html page.

尝试在IIS预先构建的网站默认网站下托管该页面。它使用默认端口80.因此,如果要创建自己的站点,则需要在从IIS管理器gui创建新站点时使用其他端口号。

Try hosting that page under the site "Default Web Sites" that comes pre-built with IIS . It uses the default port 80. So if you want to create your own site you need to use a different port number when you create that new site from IIS manager gui.

默认网站通常指向物理文件夹:c:\inetpub \wwwroot \

The default website typically points to a physical folder : c:\inetpub\wwwroot\

所以将test.html页面复制到上面的文件夹并通过转到URL进行测试: http://localhost/test.html

so copy your test.html page to the above folder and test by going to the URL : http://localhost/test.html

如果有效,请尝试使用下面的指示(步骤2)创建新网站。如果您只打算使用本地PC中的URL,则可以将主机名留空。该网址将 http:// localhost:port /

if it works then Try to create a new Web Site using directions from here (Step 2) below. You can leave the hostname blank if you only intend to use the URL from your local PC. the url will be http://localhost:port/

http:// www.iis.net/learn/manage/creating-websites/scenario-build-a-static-website-on-iis#02

编辑:

所以当您在创建新wesite时进入此屏幕时: http://i.stack.imgur.com/1YwVG.jpg

so when you are at this screen when creating a new wesite :http://i.stack.imgur.com/1YwVG.jpg

这样做:


  1. Sitename = Site01

  2. Apppool = DefaultAppPool(确保启动)

  3. 物理路径= C:\inetpub \Site01 - 需要为Everyone创建并授予完全权限(现在需要稍后更改为特定的Windows帐户)

  4. 端口:8090

  5. 主机名=空白

  6. 单击确定

  7. 将test.html复制到C: \inetpub\Site01

  8. 浏览 http:// localhost:8090 / test.html

  1. Sitename = Site01
  2. Apppool = DefaultAppPool (Make sure its started)
  3. Physical path = C:\inetpub\Site01 -- Need to create and grant full rights to Everyone (for now but need to change later to a specific windows account )
  4. Port : 8090
  5. Hostname = Blank
  6. Click Ok
  7. Copy test.html to C:\inetpub\Site01
  8. Browse to http://localhost:8090/test.html

这篇关于新网站未在IIS 8.5中显示默认页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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