Orchard CMS测试多站点时IISExpress HOST的配置
发布日期:2021-10-23 19:22:35 浏览次数:2 分类:技术文章

本文共 1339 字,大约阅读时间需要 4 分钟。

Testing Multi-Tenancy on a Local Machine

If you are running locally and do not have a domain to map, you can edit your \Windows\System32\drivers\etc\hosts file to create a sample host.

The following advice is for Windows 7 or Windows Vista and was taken from ). These instructions assume that you're using WebMatrix and IIS Express to work with Orchard.

  1. Open the \Windows\System32\drivers\etc\ folder.

  2. Right-click the hosts file and give yourself modify permissions to that file.

  3. Open the hosts file in a text editor.

  4. Add the following line, replacing mydemo with the domain name you want to use:

    127.0.0.1 mydemo

  5. Open the \Users\\[YourUserName\]\Documents\IISExpress\config\ folder.

  6. Open the Applicationhost.config file in a text editor.

  7. Locate the section for your existing Orchard site, such as the following:

    <site name="mydemo" id="nnnnnnnnn"/>

  8. Under the <bindings> section, leave the default localhost binding, but copy it onto the next line and edit it to read:

    <binding protocol="http" bindingInformation="*:28923:mydemo" />

  9. Substitute the port number above for the one you copied from the default localhost binding.

If you do not want to run WebMatrix with admin privileges (which is not a good practice for security reasons), you need to follow the steps outlined in the article

转载于:https://www.cnblogs.com/robin-z/p/3524942.html

转载地址:https://blog.csdn.net/weixin_30624825/article/details/98912629 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:《剑指offer》第五十五题(平衡二叉树)
下一篇:使用file_get_contents提交http post

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月01日 22时49分20秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章