Currently running 1.7.1 and in an effort to update to the latest version, I'm trying to restore my environment that's currently running in Azure => local so I can test the upgrade process. In production I have a single website that hosts Orchard, one
DB for the default tenant & another DB that hosts three other tenants.
I restored everything (codebase & two DBs) locally to a Windows 2012 Server, updated all tenant settings files to point to the local databases, created an IIS site that points to the webroot of my local instance with three host header bindings (for the
four tenants... default + three others). Then I updated my HOSTS file to have all domains point to localhost (127.0.0.1). To be sure it was running 100% locally, I killed my network connection.
When I browse to the default tenant, it works as expected. However, when I browse to the other tenants, Orchard renders them like they are the default tenant (the only difference is the domain name). There are no errors... I just can't get the non-default tenants
to come up locally... instead the default tenant comes up. The observed behavior is that the multi-tenant "pipeline" is not picking up the domain requested and serving up the correct tenant.
I'm not suggesting this is an Orchard bug, more that it's a config on my side... can't figure out how to get the tenants working locally. I've looked at these instructions (http://docs.orchardproject.net/Documentation/Setting-up-a-multi-tenant-orchard-site#TestingMultiTenancyonaLocalMachine
but the routing for the domains part is handled with HOSTS & IIS settings since I'm on Windows Server.
I searched the forum & stack overflow and can't find another instance of someone having this same issue... ideas?