如何在IIS 6服务器win 2003中托管多个Web应用程序。 [英] How to host Multiple Web application in IIS 6 server win 2003.

查看:136
本文介绍了如何在IIS 6服务器win 2003中托管多个Web应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我有两个网络应用程序,我只有一台服务器。



所以如何使用虚拟目录托管Web应用程序。



我想使用斜杠(/)来运行这两个应用程序。



请给我一个很好的解决方案。我很努力。



谢谢ADVANCE。

解决方案

你究竟想做什么HYD ?不清楚

当然,在IIS 6中托管多个站点(或任何其他)

在一个或多个虚拟目录中没有问题,这就是为互联网信息服务创建的。

当你使用斜杠(/)键入是什么意思?



试着详细说明你遇到的需要或问题。



干杯,

Edo

由于Web服务器无法读取思想,因此必须使用某些东西来区分应用程序/站点之间的请求。您有三种选择:

1)不同的端口和一个IP

2)不同的IP

3)使用CNAME别名

以下是所有三种情况的IIS6的方法,请看左边的菜单:http://www.microsoft.com/technet/prodtechnol/WindowsServer2003 /Library/IIS/55161df5-5f55-4ed3-bb26-b675153d49ac.mspx?mfr=true [ ^ ]



服务提供商使用此后一个选项来执行简单的Web托管。浏览器发出主机标题 [ ^ ]。 IIS使用它来区分同一Web服务器上的目标。简单易行。您所要做的就是在您需要的级别向DNS添加带有友好名称的CNAME别名(在您的情况下,这很可能是公司的DNS服务器)。

让我们假设,你的机器是 server1.domain.com ,你有 app1 app2 ,比你应该注册两个 CNAME记录 [ ^ ]在DNS中: app1.domain.com app2.domain.com ,两者都指向原始服务器名称。您可以将这些别名分配给您的站点。这就是全部。


我同意上述海报。网上有很多信息可以帮助您。希望以下内容能为您指明方向。



为每个网站尝试以下内容 -



1.在默认网站下创建一个虚拟目录,其中包含相应的名称(斜杠后面的名称[/])



2.设置以下属性适当的

- 应用程序池(可选)

- 默认文件

- 安全性(匿名/基本/窗口)

- asp.net的正确版本





我假设你有一个有效的网络服务器,可以访问默认网站。

网上有足够的文件证明上述每一点。



干杯


Dear Frnds,

I have two web applications, and i have only one server.

so how to host web applications using virtual directory.

I want to run this two applications using slash(/).

Please give me a good solutions. am trying a lot.

Thanks in ADVANCE.

解决方案

What exactly do you want to do HYD? not clear
of course, there is no problem hosting multiple sites in IIS 6 (or any other)
in one or more virtual directories, that''s what the Internet Information Services was created for.
What do you mean when you type "using slash(/)"?

Try to elaborate on your need or problem you encountered.

Cheers,
Edo


Since the web server can not read minds, it has to use something to tell requests apart between applications/sites. You have three choices:
1) different ports and one IP
2) different IP
3) using CNAME aliases
Here is the howto for IIS6 for all three cases, look at the menu on the left: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/55161df5-5f55-4ed3-bb26-b675153d49ac.mspx?mfr=true[^]

This later option is used by the service providers to do simple web hosting. The browser sends out a Host header[^] in the http request. This is used by IIS to distinguish between targets on the same web server. Simple and easy. All you have to do is add a CNAME alias with a friendly name to DNS at the level you need (in your case this will be most likely the company DNS server).
Let''s suppose, your machine is server1.domain.com, and you have app1 and app2, than you should register two CNAME records[^] in the DNS: app1.domain.com and app2.domain.com, both pointing to the original server name. Than you can assign these aliases to your sites. That''s all.


I agree with the above posters. There is a lot of information on the web to help you with the same. Hope the below will point you in the right direction.

Try the following for each website -

1. Create a virtual directory under ''Default web site'' with appropriate name (the name you want after slash [/] )

2. Set the following properties appropriately
- Application pool (optional)
- default document
- security (anonymous/basic/windows)
- correct version of asp.net


I am Assuming you have a working webserver and can access the default website.
There is sufficient documentation on the web for each of the points above.

Cheers


这篇关于如何在IIS 6服务器win 2003中托管多个Web应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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