subdomain on MojoPortal with DNS Record/CName using Host Name Mapping 

Posted by craig Saturday, May 30, 2009 5:40:19 AM

 

The following describes how to add a subdomain using HostNameMapping on UsanaCar or similar sites,  (folder mapping does not seem to work), but in any case host name mapping is much easier.

Getting Mojoportal to work with a subdomain can be tricky depending on the hosting provider.  On Usanacar, this process requires several steps in addition to the standard mojoportal steps:

Adding the A Record on UsanaCar for a new subdomain on mojoportal.

1) On UsanaCar ( or many similar providers) go to the TotalDNS settings page (click on hosting=> manageAccount=>open settings box and click Dns Manager. 

2) clicking Dns Manager opens the Domaing Manager page., Clcik on the Domains tab and select the domain to modify.

3) Under A (host)  add the A Record by adding MySubdomain under the Host field and the ip address under the PointsTo,  TTL = 1 hour not sure how to use the TTL field, but 1 hour works…

the first 3 steps adds the required A Record. We now need to add the subdomain mapping

4) From the main manageAccount page, click on the yourDomains button.  Click on the domain and then add the mapping of the ROOT mojoportal site directory to the subdomain.  MojoPortal now does the rest.

Setting Up MojoPortal for hostName mapping for the new subdomain. (from the mojoportal documentation)

To host multiple sites using 1 web installation you need a dedicated ip address so you can point multiple host name DNS records at the ip address of your site, and your site should be configured to handle all requests for that ip address. In IIS, it is possible to host multiple mojoPortal sites using a shared ip address, but this requires adding host headers in IIS for each site that will be handled by mojoPortal.
1. Get the first site working first
2. Make sure the web.config setting AllowMultipleSites is set to true (in the first site.
3. Go to Admin > Site Settings in the first site. You should see a dropdown list next to the site name, choose "New Site", then enter a name for the new site and click Save

After you save the new site, some new settings appear at the bottom of the page for configuring the new site.

3 Enter the host name for the new site and click the Add Host button. You may also configure which features are installed in the new site.
If using multiple physical web sites, configure the second physical web site with the same connection string as the first site. The host name you entered for the new site must point to the new site through DNS. mojoPortal uses the host name to determine the siteid from the database, if no host name is configured, the content will be the same in both sites as it will always default to the first site when there is an unknown host name.
The first site is the master site as it can control what features are installed in the child sites. If using multiple physical web installations and one db, it is probably best if only the first site has the web.config setting "AllowMultipleSites" set to true.
Open another browser and navigate to the other host name.

Copyright 2009 AnyTime
Comments are closed on this post.

Site Map | © 2008 - 2010

bible anytime