Where to get started with multiple sites?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/15/2012 2:30:33 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Hi,

What part(s) of the process are you having trouble with? Have you added a test domain to your hosts file? Have you setup mojoPortal in its own IIS website? Have you added the binding for the test domain to the IIS site?

I'll help you as much as possible but please be sure you are reading all of the documentation I send you to, don't just skim over it and then think that mojo is the problem.

Thanks,
Joe D.

2/15/2012 2:35:31 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

well I appreciate your assistance... right now, I'm stuck at just trying to do something with the HOSTS file... 

I can access the main site that is running on the server, using the servers IP address like:

http://<IP ADDRESS>:8080/mojoportal/

 

so, after I remote into the server and access the HOSTS file, I have no idea what to add since it is on a server and not on the same machine I am working from

2/15/2012 2:37:52 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

the only thing in there now is an entry for sqldev

<IP ADDRESS> sqldev

2/15/2012 2:40:44 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

do I have to add something to my local machine as well before I can try to access www.cheesburger.com?

2/15/2012 2:54:50 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

You would modify the hosts file on your local pc. You would put something like:

1.2.3.4 mymojoportaldevsite.com

in the hosts file on your pc.

You would then add mymojoportaldevsite.com to the bindings for the IIS website on the server.

Again, I suggest that you do not run mojoPortal in a Virtual Directory if you are wanting to use the multiple sites feature.

HTH,
Joe D.

2/15/2012 3:13:18 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

the main issue with that would be in trying to separate out different CMS systems for evaluation... I wanted to be able to keep them cleanly separated, so it could be moved or redeployed somewhere else...

so in my case, on my local machine, I would need something like

<SERVER IP ADDRESS>:8080 www.cheesburger.com

to get to the second site, after adding bindings in IIS7?

and then how would I get to the main site?

thanks again for your help with this

2/15/2012 4:00:25 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Using Virtual Directories doesn't allow you to keep anything separate, the reverse is actually true.

You can't put port numbers in your hosts file. That's not what it is for.

If you create a website in IIS, and add the binding as I have suggested, you will end up with a website that is totally separate from others on your server.

  1. Create a folder somewhere on your server
  2. Create a new Web Site in IIS and name it mojoportal
    Set the "Physical Path" to the path of the folder from step 1.
    Set the "IP Address" to "All Unassigned" and the "Port" to "80".
    Set the "Host name" to "www.cheeseburger.com" (without quotes)
    Click OK
  3. Click the "Application Pools" item on the left side of IIS Mgr.
  4. Click the "mojoportal" application pool and then click the "Advanced Settings" link in the "Actions" pane.
  5. Set the ".NET Framework Version" to "v4.0," make sure the "Identity" is set to "ApplicationPoolIdentity" and click OK
  6. In Windows Explorer, move the files from your current mojoPortal installation to the folder you created in step 1. Put the files directly inside of the folder, not inside of another folder. In other words, if the path to your folder is c:\mojoPortalDev, all of the files from the release would be found inside of that folder. So, you should be able to go to c:\mojoPortalDev\bin and see a bunch of dlls files.
  7. Right click the folder from step 1 and choose properties, on the security tab click Edit..., then click Add..., now type "IIS AppPool\mojoportal" (without quotes) and click OK, click OK, click OK
  8. Repeat step 7 on the /App_Data and /Data folders but this time, the "mojoportal" user will already be there and you just need to change the permissions on these folders to "Modify" for the user.

The use of a hostname on the site will allow you to create multiple IIS websites, using the same port and IP address, on one server.

Now, add this to the hosts file on your local pc:

<SERVER IP ADDRESS> www.cheeseburger.com

I've been using IIS for over 16 years (since version 1). I can guarantee you that the above steps will work (not withstanding firewall settings). There is nothing in this configuration that is unique to mojoPortal. This is how one would create a standard website in IIS. The only thing that is not what you would do for a public website is the use of the hosts file. But, since you do not have access to a DNS server and a true domain name, we have to use it.

HTH,
Joe D.

2/15/2012 4:11:51 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

Thanks again for your information - I'll review all of this and walk back through it -

I have a new web site set up in IIS7, called it mojoportal, the main difference being that I gave it a port number of 8080, so I should be able to just change that to 80 and add the binding in IIS7 for the test host name of www.cheeseburger.com... so perhaps the install I am working with is not really in a virtual directory...

 

2/15/2012 4:16:24 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

The reason I thought you were working out of a virtual directory is you posted this:

right now, I can access the main site using a URL of http://<IP ADDRESS>:8080/mojoportal/

That trailing /mojoportal/ means the site is running in a virtual directory.

Thanks,
Joe D. 

2/15/2012 5:19:13 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ok - got ya - thanks again for the assistance - I'll continue working on it Laughing

2/15/2012 7:21:04 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Where to get started with multiple sites?

Hey Joe, thanks for jumping in here. I really liked your step-by-step setup instructions. Maybe that should be in its own "quick start" document for IIS users!

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