zoukankan      html  css  js  c++  java
  • Orchard CMS测试多站点时IISExpress HOST的配置

    Testing Multi-Tenancy on a Local Machine

    If you are running locally and do not have a domain to map, you can edit your WindowsSystem32driversetchosts file to create a sample host.

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

    1. Open the WindowsSystem32driversetc 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]DocumentsIISExpressconfig 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 Handling URL Binding Failures in IIS

  • 相关阅读:
    C++ 共用体
    C++ 作用域内枚举
    C++ 作用域为类的常量
    C++ 类作用域
    C++ 对象数组
    C++ this指针
    C++ const成员函数
    C++ 对象的初始化和赋值
    C++ 析构函数
    乌班图 之 apt命令 及 VMware共享文件夹
  • 原文地址:https://www.cnblogs.com/robin-z/p/3524942.html
Copyright © 2011-2022 走看看