Regarding Adding Tenant

Topics: Administration, General
Dec 5, 2013 at 9:29 AM
In orchard we can add tenant by using two ways a) with URL prefix www.mywebsite.com/myfirsttenant b) using subdomain

myfirsttenant.mywebsite.com/

is this possible to add tenant with separate URL e.g. www.myfirsttenant.com
Developer
Dec 5, 2013 at 10:26 AM
Yes, just add the host header to your IIS site and set the RequestUrlHost key in Settings.txt of your tenant to the desired domain.
Dec 5, 2013 at 11:13 AM
I have hosted the source code on local machine using IIS 7. I have added these two lines in "C:\Windows\System32\drivers\etc\hosts"

127.0.0.1 alpha.net
127.0.0.1 beta.net

now i added a website

Name: alpha.net
Binding : http:*:8080:alpha.net

ok now when i type the above address (http:*:8080:alpha.net) in bar it work fine. now i add the tenant

Name: Beta

Host: beta.net

now if i type http://beta.net:8080/ in bar it doesn't work

Settings.txt files for both sites are as follow

Beta:

State: Uninitialized
Themes:
Name: Beta
RequestUrlHost: beta.net
RequestUrlPrefix: null
DataProvider: SqlServer
DataConnectionString: Data Source=RI-PC10\SQLEXPRESS;Initial Catalog=Beta;Persist Security Info=True;User ID=sa;Password=radius123?
DataTablePrefix: null

Default(Alpha)

State: Running
Themes:
Name: Default
DataProvider: SqlServer
DataConnectionString: Data Source=RI-PC10\SQLEXPRESS;Initial Catalog=Alpha;Persist Security Info=True;User ID=sa;Password=radius123?
DataTablePrefix: null
RequestUrlHost: null
RequestUrlPrefix: null
EncryptionAlgorithm: AES
EncryptionKey: 51DF2B0F2E2D2E09ADD099890B96A53A1D18C18CC9D68DC1C4CC7B68E8C62466
HashAlgorithm: HMACSHA256
HashKey: 08B0794B8A52B74F4B91A739F7CAC130E385B051A56EF041539C6E645457A520C832F9A7AC97F49E3806287808035C303EEDD32B386BDED2C4080B2BB243BA8F