如何在单个IP地址中托管多个网站 [英] how to host mutiple website in single ip address

查看:66
本文介绍了如何在单个IP地址中托管多个网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我有3个站点,例如Samp1,samp2,samp3 ..

现在我的网址就像www.samp.com

我需要它像www.samp.com/samp1 .....其打开的samp1网站
和www.samp.com/samps .....其开放的samp2网站
,e www.samp.com/sam31 .....其打开的samp3网站...

请与我分享有关此共享的任何想法.

Hi Friends,

i have 3 sites like Samp1,samp2,samp3..

now my url like www.samp.com

i need its like www.samp.com/samp1.....its open samp1 site
and www.samp.com/samps.....its open samp2 site
,e www.samp.com/sam31.....its open samp3 site...

plz any idea about this share with me.

推荐答案

是的,您可以在Windows 2000的IIS中做到这一点. com/Hosting/web-hosting.aspx?isc = IAP1220off>服务器容易

创建新网站后,右键单击该网站以转到属性",再单击"IP地址"框右侧的高级..."按钮,
然后单击添加...以添加主机头.主机头是告诉IIS要检索哪个站点的域名(因为许多站点共享一个IP).提示:通过添加更多主机头,一个网站也可以具有多个域名.

唯一的缺点是您无法使用诸如http://123.123.123.123之类的IP浏览该站点.如果没有主机头,IIS将不知道您要访问哪个站点.另一件事是您不能使用此单个IP来设置多个ftp站点. IIS不支持将多个ftp服务器放在一个IP上(也不能添加主机头).您可以为所有客户使用一个ftp站点,然后创建多个虚拟目录,以便客户可以登录并映射到他们各自的wwwroot(以及他们的ftproot).

我不确定Windows .NET是否可以支持多个ftp主机头.您可以检查一下.

希望对您有所帮助.
Yes, you can do it in IIS of Windows 2000 Server easily

After you create the new web site, right click the site to go to Properties, click Advanced... button at the right of IP Address box,
then click Add... to add a Host Header. The host header is the domain name that tells IIS which site to retrieve (since many sites share one IP). Tips: one web site can have mutliple domain names too by adding more Host Headers.

The only drawback is you can''t browse the site by using IP such as http://123.123.123.123. Without the host header, IIS doesn''t know which site you want to access. Another thing is you can''t use this single IP to setup multiple ftp sites. IIS doesn''t support multiple ftp Servers to sit on one IP (can''t add host header too). You can use one ftp site for all customers, then create mutliple virtual directory so the customers can logon and be mapped to their individual wwwroot (also their ftproot).

I am not sure whether Windows .NET can support multiple ftp host header. You may check it out.

Hope this helps.


按照您的方式编写,完全没有问题.从技术上讲,您想要的就是让一个站点由三个不相关的目录组成;只需将每个开发的站点放在顶层的单独目录中即可.

也许,您想要更复杂的东西,但是请解释一下.一种选择是使用三个子域.您只需要三个附加的DNS条目.

—SA
The way you formulated it, it presents no problem at all. What you want is equivalent to having technically one site made of three unrelated directories; just put each of your developed sites in a separate directory on a top level.

Perhaps, you wanted something more complex, but then please explain it. One options is using three sub-domain. You will need just three additional DNS entries.

—SA


Craete 3 virtual directory under the same root which is point to the your IP
samp1
samp2
samp3


这篇关于如何在单个IP地址中托管多个网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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