multi sites using subdomain

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.
1/7/2010 5:49:47 AM
Gravatar
Total Posts 51

multi sites using subdomain

Does anybody have an idea of installing multi sites using subdomain?

My subdomain structure is : http:subdomain.mydomain.com.

How do I configure mojoPortal to setup files in 'subdomain' ?

Thanks

1/7/2010 5:57:07 AM
Gravatar
Total Posts 18439

Re: multi sites using subdomain

Hi,

You just need one installation of mojoPortal with a fixed/dedicated ip address and you point all your subdomain host names at the same ip address using DNS a records.

See Multiple Sites Based on Host Names

Hope it helps,

Joe

1/7/2010 6:26:53 AM
Gravatar
Total Posts 51

Re: multi sites using subdomain

Thanks Joe for your amazing quick reply.

How do I point my subdomain host name at the same ip using dns records?

My domain is: mymojosite.com and my subdomain: classified.mymojosite.com.

my ip/hostname is: 64.29.151.221 / mymojosite.com and the dns is: ns1.abac.com

Hope you´ll help

 

Thanks

1/7/2010 7:01:05 AM
Gravatar
Total Posts 18439

Re: multi sites using subdomain

It depends, if you are at shared hosting and using the hosting company name servers you may not have any access to DNS management.

For me, my domain names were purchased through Yahoo domains and they provide a web page for managing DNS records. I can make up arbitrarynames.mojoportal.com and point them at whatever ip address I want. Network solutions and other domain name vendors also provide tools for DNS management, so it depends who your registrar is for your domain and whether they provide a way to manage DNS.

Often shared hosting providers will ask you to transfer your domain to them and then it uses their name servers and often you have no control at that point and have to get your host to make DNS records. Often in shared hosting even if you have a fixed ip address it is not a dedicated ip address, that means other sites use the same ip address as your site and in this case the host also sets up IIS host headers to resolve the host name to your specific site. So in that scenario you would also need host headers in IIS for each subdomain.

A dedicated ip address means you can reach the site just by using the ip address like http://123.12.123/ or whatever the ip address is. A dedicated ip address is what you need if you don't have control over IIS and can't add IIS host headers. With a dedicated ip address it is sufficient to point the DNS a record for each sub domain at the ip address. If it is a shared fixed ip address then you also need to be able to add IIS host headers to tell IIS which site handles that host name.

Hope it helps,

Joe

1/7/2010 10:47:14 AM
Gravatar
Total Posts 51

Re: multi sites using subdomain

Thanks again Joe for your reply. It´s actually possible to manage my dns records. Just have to understand how it work.

Thanks

1/7/2010 10:59:24 AM
Gravatar
Total Posts 18439

Re: multi sites using subdomain

It's basically just creating what is known as DNS a record, you define the host name like somehost.somedomain and an ip address, those are the only 2 properties of an a record, hostname and ip address.

1/13/2010 11:44:11 AM
Gravatar
Total Posts 51

Re: multi sites using subdomain

Sorry to bother you again Joe and all the helpful guys on this forum.

I check with my hosting company:

I have fixed but not dedicated IP.

In the Control Pane of my domain I have access to DNS and DNS Zone Records management.

But I still don´t understand the procedure of multi sites with mojoPortal.

I created a subdomain: classified.abidjandigital.com. I followed the instructions in mojoPortal and add a site: classified.abidjandigital.com.

How do I "point" my subdomain host name at the same ip using dns records?

In DNS Zone Records management I created a "A" record with the same IP as my domain. Should it be "CNAME" record pointing at abidjandigital.com instead?

I would really like to make it work so my domain and all subdomains share the same skin and settings.

Thanks for your help.

 

 

1/13/2010 12:50:18 PM
Gravatar
Total Posts 2187

Re: multi sites using subdomain

Considering you are using a fixed shared IP address, your control panel software will need to allow you to add host headers to your websites. You need to have your subdomain and your regular domain pointing to your mojoPortal website. Once this is done, mojoPortal will handle directing traffic to your subdomain.

HTH,
Joe D.

1/13/2010 2:15:26 PM
Gravatar
Total Posts 51

Re: multi sites using subdomain

Thank for the reply Joe.

But how do I "point" my subdomain and my domain to my mojoPortal site?

My domain abidjandigital.com is my mojoPortal site and my subdomain is classified.abidjandigital.com.

Thanks for your help

1/13/2010 3:15:02 PM
Gravatar
Total Posts 2187

Re: multi sites using subdomain

I don't know what control panel software your host uses so I can't really help you there, sorry.

Thanks,
Joe D.

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