Creating multiple sites

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.
8/31/2010 7:21:31 AM
Gravatar
Total Posts 9

Creating multiple sites

I am trying to create multiple sites but facing some problems.

Background:

I host many websites on my server. The site that opens by default after typing host name is: www.myhostname.com/defaultsite/ (Which is not a mojoportal site)

The address of Mojo site is: www.myhostname.com/mojoportal/

I have added the following entry in hosts file for another mojo site:

127.0.0.1     www.mojosite2.com

I have created this website on mojo and added this (www.mojosite2.com) name in the host name mapping tab of the mojosite2.

When i try to access www.mojosite2.com it opens up www.mojosite2.com/defaultsite/ (open the default site of the server with newly created host name) rather than opening mojosite2.

Please provide a solution in simple language as i am not a pro.

Abhijit

9/1/2010 8:26:18 AM
Gravatar
Total Posts 18439

Re: Creating multiple sites

To use mojoPortal multi site feature it needs to really run as a root web site not in a sub folder.

The problem is you have a strange web site configuration where sites are running in sub folders and you have some redirect from root to the sub folder. Probably some default page in the root is doing the redirect. If you created it you should be aware of it.

You need to learn more about IIS and you won't use these strange redirects, instead you will create multiple root sites in IIS and use host headers so they can all run on the same ip address. your current configuration is not good for many reasons, not only will it not work with mojoPortal multi sites but it is bad for SEO to have this redirect you are using.

I recommend watch the videos listed here:

http://www.mojoportal.com/installation-configuration-training-videos.aspx

and do some more reading to learn more about IIS configuration and correct ways of setting up web sites.

when you learn how to do it you will not have your sites running in sub folders like /defaultsite or /mojoportal, that is not a good way to do things.

instead you can have www.yourdomain.com for your non mojo site and something else like

cms.yourdomain.com for the first mojo site and any host name for other sites

Hope it helps,

Joe

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