使用域作为不同站点的子域?

发布于 2024-12-10 16:54:33 字数 822 浏览 1 评论 0原文

这就是我想要创造的幻想。想象一下,我的公司正在为想要轻松创建网站的公司提供内容管理系统。公司来了,选择包和主题,并创建从类别系统到产品详细信息的网站。

,该公司网页的网址是 http://company.mysite.com

如果他想登录管理面板 ,网址为 http://company.mysite.com/administrator

到这里为止没问题。一切都很好并且工作正常。但是我想给公司一个选择,无论他是否想要一个新域名,就像 WordPress 那样。例如; www.mycompany.com 可用,他想要它而不是 mycompany.mysite.com

这是问题;

我如何使用该域,就像它托管在 mysite.com 上一样?简而言之,我想从一个地方发布所有数据,并且不想为每个客户提供重复的文件。

注 1:已安装带有 IIS 7.5 Url Rewrite 2 的 Windows Server。 注2:必须为该公司开设托管,因为他们想使用诸如 之类的电子邮件[电子邮件受保护] 也。

我真的需要一个答案。我希望我能很好地解释。希望你能理解:)

至少请告诉我这背后的逻辑。

问候

Here is the fantasy I want to create. Imagine my company is offering a Content Management System for companies who want to create their web sites easily. Company comes, selects package and theme and creates its web site from Category system to Product Details.

And the url of this company's web page is http://company.mysite.com

If he wants to login admin panel, the url is http://company.mysite.com/administrator

No problem till here. Everything is fine and working.. But I'd like give an option to the company whether he wants a new domain or not like Wordpress does. For example; www.mycompany.com is available and he wants it instead of mycompany.mysite.com

Here is the question;

How can I use this domain as if it was hosted on mysite.com? Briefly, I want to publish all data from one place and don't want to have duplicate files for every customer.

Note 1: Windows Server with IIS 7.5 Url Rewrite 2 is installed.
Note 2: A hosting has to be opened for that company because they want to use e-mails like [email protected] also.

I really need an answer. I hope I could explain well. Hoping you to understand :)

At least please tell me the logic behind this.

Regards

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

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

发布评论

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

评论(1

情归归情 2024-12-17 16:54:33
  1. 您需要更新 www.mycompany.com 的 DNS 条目,以便它指向与 company.mysite.com 相同的网络服务器。
  2. 然后,在 IIS 中,如果每个子域都有单独的 IIS 网站,则需要将 www.mycompany.com 添加为新的 IIS 绑定到公司的 IIS 网站。
  3. 现在,两个域的所有流量都将发送到同一个 .Net 应用程序,因此您的应用程序将返回正确的内容。
  1. You need to update the DNS entry for www.mycompany.com so that it points to the same webserver as company.mysite.com.
  2. Then in IIS if you have separate IIS web sites for each subdomain, you'll need to add www.mycompany.com as a new IIS binding to the company's IIS website.
  3. Now all traffic for both domains will be sent to the same .Net application so it is just up to your application to return the correct content.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文