Windows Server 2003 Web 服务器上的每个子域是否都需要专用 IP 地址?

发布于 2024-09-26 09:39:54 字数 370 浏览 1 评论 0原文

我们有一个具有两个 IP 地址的远程网络服务器。我们可以在这台服务器上放置几个像这样组织的Web应用程序吗?我使用 xttp 而不是 http,因为 stackoverflow 认为我正在尝试添加真正的链接。

xttp://www.ourdomain.com
xttp://dogs.ourdomain.com
xttps://securedogs.ourdomain.com
xttps://securecats.ourdomain.com
xttp://cats.ourdomain.com

也就是说,与几个子域关联的应用程序使用 https,而其他子域则使用 http。

每个子域不需要自己的 IP 地址,不是吗?

谢谢

We have a remote webserver with two IP addresses. Can we put several web applications on this server organized like this? I am putting xttp instead of http because stackoverflow thinks I'm trying to add real links.

xttp://www.ourdomain.com
xttp://dogs.ourdomain.com
xttps://securedogs.ourdomain.com
xttps://securecats.ourdomain.com
xttp://cats.ourdomain.com

That is, where the applications associated with a couple of the subdomains use https while others use http.

Each subdomain doesn't need its own IP address, does it?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亚希 2024-10-03 09:39:54

没有必要为您托管的每个站点使用单独的 IP 地址。 IIS 和 Apache 可以通过主机头(即用户请求的 URL)识别用户想要哪个站点。

这是一个很好的操作页面对于 IIS 6.0,它是 Windows Server 2003 上的内置 Web 服务器。这里是 Apache 服务器的好方法(如果您愿意的话)。

请注意,只有当所有站点都由同一服务器(IIS 或 Apache)管理时,这才有效。如果您使用 Rails、Django 或其他 Web 应用程序/框架的实例,那么它需要更多的努力:通常,您将配置每个实例以使用不同的端口,并将 IIS 或 Apache 服务器放在前面默默地重定向到适当的端口。

It is not necessary to use separate IP addresses for each site you are hosting. IIS and Apache can recognize which site the user wants by the host headers--that is, by the URL the user is requesting.

Here's a good how-to page for IIS 6.0, which is the built-in web server on Windows Server 2003. And here is a good how-to for Apache Server, if that's your preference.

Note that this only works if all the sites are managed by the same server (IIS or Apache). If you are using instances of Rails, Django, or other web application/frameworks, then it requires a little more elbow grease: typically, you would configure each instance to use a different port, and the put an IIS or Apache server in front to silently redirect to the appropriate ports.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文