IIS7启动站点 [英] IIS7 startup site

查看:87
本文介绍了IIS7启动站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有IIS7的Windows 2008 Server,并且有一个以 myApplication 的名称运行的网页.我有一个指向服务器IP的域名,例如 myApplication.com .

I have a Windows 2008 Server with IIS7 on it and a web page running under the name, let's say myApplication. I have a domain name that points to the IP of my server, let's say myApplication.com.

要访问我的应用程序,我必须输入 http://myApplication.com/myApplication . 如果我写 http://myApplication.com/,我将到达IIS7起始页面.当有人输入" iisstart.htm 以进行JavaScript或元数据重定向外)还可以自动打开 myApplication ="http://myApplication.com/" rel ="nofollow noreferrer"> http://myApplication.com/ ?

In order to access my application I have to enter http://myApplication.com/myApplication. If I write http://myApplication.com/ I arrive to the IIS7 start page. Is there a way (besides rewriting the iisstart.htm to make a JavaScript or meta-data redirect) to automatically open the myApplication when someone enters "http://myApplication.com/"?

我想要的是以下内容:

  • The user enters in the browser: "http://myApplication.com/"
  • He/she is taken to "http://myApplication.com/myApplication"
  • In the URL bar of the browser only "http://myApplication.com/" shows and everything inside the application is relative to this URL.

推荐答案

通常,在配置IIS时,我将默认网站"的属性设置为不包含任何内容的文件夹,然后在IIS中创建单独的条目每个网站.例如,您将为"MyApplication.com"创建一个新条目,并将其主目录设置为包含根文件的服务器上的正确文件夹(通常为c:\ inetpub \ wwwroot \ myapplication.com \,但可以在任何位置)你喜欢).

Generally when I configure IIS, I set the properties for the "default web site" to a folder that doesn't contain anything, then create individual entries within IIS for each web site. For example, you would create a new entry for "MyApplication.com" and set its home directory to the proper folder on the server that contains your root files (usually c:\inetpub\wwwroot\myapplication.com\ but it could be anywhere you like).

听起来好像已经为应用程序创建了一个文件夹,但是在IIS中没有配置用于处理请求并从适当的文件夹加载文件的特定条目.

It sounds as if you have created a folder for your application, but do not have a specific entry in IIS configured to handle the requests and load files from the proper folder.

如果您有该应用程序的专用IP地址,请确保在该站点的站点设置中指定该IP.如果将单个IP用于多个站点,请配置将用于访问该站点的IP AND主机名/域,以便IIS知道哪些站点条目属于哪些域以及将请求路由到何处.

If you have a dedicated IP address for the application, be sure to specify that IP within the site settings for that site. If you're using a single IP for multiple sites, configure the IP AND hostnames/domains that will be used to access that site so IIS will know which site entries belong to which domains and where to route the requests.

这篇关于IIS7启动站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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