Creating more than one website using MojoPortal

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/1/2008 9:32:18 AM
Gravatar
Total Posts 6

Re: Creating more than one website using MojoPortal

Hi Joe

where can I set the option for the preferred domain?

Thanks for Help

Hajo

8/1/2008 9:37:49 AM
Gravatar
Total Posts 18439

Re: Creating more than one website using MojoPortal

Hi Hajo,

Look for this in Web.config and set it to true (or put it in user.config and set it to true)

<!--
AllowForcingPreferredHostName, if set to true a new Site Setting appears (only in root site or IsServerAdminSite)
for entering a preferred host name. The reason this is disabled by default and only available from within the
server admin site is because putting an invalid host name in this site setting can make the site inaccessible
as it will keep redirecting to an incorrect host name. So this is only for expert use, but is useful in cases where
you may have a site that responds to multiple host names like mojoportal.org, mojoportal.com, www.mojoportal.com
and you want to always force a specific one. For example, my ssl certificate only matches www.mojoportal.com
so I want to force the sue of that host name by redirecting to it if a request comes in for a different host name.
-->
<add key="AllowForcingPreferredHostName" value="false" />

See the comments to understand why its not enabled by default. After you set that to true the preferred host setting shows up in Site Settings.

Best,

Joe

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