Setting up subdomains with 1 database but multiple installation in medium Trus

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/3/2009 1:11:10 AM
Gravatar
Total Posts 17

Setting up subdomains with 1 database but multiple installation in medium Trus

First thanks for this great CMS,  I have found it quite easy to use, powerful and looking through the developer docs it looks easy to extend, so as an active asp.net developers, I am looking forward to playing with the custom modules possibilities.

I have been trying to set up subdomains in Medium Trust for some time and I am flat out of ideas on how to get it to work.

Since I am in medium trust, reading through the documentation, suggests that I will need multiple installations.  On my provider side I have setup

domain1.xxx.com

domain2.xxx.com

and on the server they map to /domain1 and /domain2 folders.

I have used the same connection string in both subdomains so that the same DB will be used.  Unfortuantely it looks like the 2 subdomains are using the same db schema.  I think I need to somehow set  a unique SiteID per subdomain when using multiple installations, but 1 DB, but I can't see where this parameter is.

 

any help would be appreciated.

cheers,

shelby

 

 

3/5/2009 6:25:48 AM
Gravatar
Total Posts 18439

Re: Setting up subdomains with 1 database but multiple installation in medium Trus

If you go into the first site, in Administration Menu > Site Settings, you should see a dropdown next to the site title, choose the 2nd site from the list then on the Host Name mapping tab specify the host name domain2.xxx.com 

Any host name that resolves to the ip address the site is running on will always use the first site unless it is mapped to a different site by host name mapping. So its really only needed to specify it for the secondary host names. 

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.