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 Orchard Issue Tracker on CodePlex). These instructions assume that you‘re using WebMatrix and IIS Express to work with Orchard.
Open the \Windows\System32\drivers\etc\
folder.
Right-click the hosts file and give yourself modify permissions to that file.
Open the hosts file in a text editor.
Add the following line, replacing mydemo
with the domain name
you want to use:
127.0.0.1 mydemo
Open the \Users\\[YourUserName\]\Documents\IISExpress\config\
folder.
Open the Applicationhost.config
file in a text
editor.
Locate the section for your existing Orchard site, such as the following:
<site name="mydemo" id="nnnnnnnnn"/>
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"
/>
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
Orchard CMS测试多站点时IISExpress HOST的配置
原文:http://www.cnblogs.com/robin-z/p/3524942.html