Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...newbie multiple portal questionnewbie multiple portal question
Previous
 
Next
New Post
3/15/2006 1:42 PM
 

I have installed one copy of DotNetNuke and would like it to run two portals with different domain names. The twist is I'm migrating existing web sites, so I cannot instantly put everything into DNN. Also, I'd like to keep the DNN files separate from the root web folders for simplicity.

My environment is:
DNN 4.0.2
ASP.NET 2.0
IIS 5/Windows 2000

So far, I have created three web sites in IIS with the following structure:

MAIN DNN INSTALLATION
devroot.domain.com
c:\inetpub\dev

PORTAL 1
dev.portal1.com
c:\inetpub\portal1
c:\inetpub\portal1\site (virtual directory that points to c:\inetpub\dev)

PORTAL 2
dev.portal2.com
c:\inetpub\portal2
c:\inetpub\portal2\site (virtual directory that points to c:\inetpub\dev)

Within DotNetNuke's Host > Portals menu, I set up the following aliases:
Portal 1 dev.portal1.com/site
Portal 2 dev.portal2.com/site

This works pretty well, but I'm noticing a few bugs.

1) When I hit http://dev.portal1.com/site in a browser with the default DNN installation, two of the modules produce errors. That concerns me. I can edit the content and get rid of the errors, but please confirm that I'm not doing anything "weird" before I customize this installation.

Error: Sponsors is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: StartIndex cannot be less than zero. Parameter name: startIndex ---> System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at System.String.Substring(Int32 startIndex) at DotNetNuke.Modules.Html.HtmlModule.ManageUploadDirectory(String strHTML, String strUploadDirectory) at DotNetNuke.Modules.Html.HtmlModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

--------------------------------------------------------------------------------

Error: Books is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: StartIndex cannot be less than zero. Parameter name: startIndex ---> System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at System.String.Substring(Int32 startIndex) at DotNetNuke.Modules.Html.HtmlModule.ManageUploadDirectory(String strHTML, String strUploadDirectory) at DotNetNuke.Modules.Html.HtmlModule.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

2) When I change the portal skins using the host account on the main DNN installation at http://devroot.domain.com, it "takes" on the page but does not actually change the skin. However, when I log into a portal using http://dev.portal1.com/site, I can change the skin through Site Settings. Am I just misunderstanding the permissions and inheritance here?

TIA,
John

 
New Post
3/15/2006 2:02 PM
 

Sorry that question was so long, but here's a screen shot of the IIS settings, if that helps.
http://www.onlineconcepts.com/images/misc/dev_iis_setup.png

Now I'm thinking I may not need to access DNN at all through what I'm calling the "Main DNN Installation." Can I just get rid of the devroot.domain.com domain and only access through http://dev.portal1.com and http://dev.portal2.com?

BTW, I'm using Parent, not Child, portals.

-John

 
New Post
3/16/2006 5:08 PM
 

I figured out the issues in my original post. For posterity:

Bug #1
Bug #1 occurred only with TextHtml modules that contained images in the content. DNN's ManageUploadDirectory assumes all home directories are under the Portals folder, and that causes problems interpreting image paths. Originally, I set up the "home directory" for each portal in a unique location that was not in the Portals folder. To fix, I created new directories at:

c:\inetpub\dev\Portals\portal_home_portal1 and
c:\inetpub\dev\Portals\portal_home_portal2

Then I manually changed the home directories in the database after running this query.

SELECT PortalName, HomeDirectory
FROM Portals

For more, see http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/34/threadid/6740/scope/posts/Default.aspx

Bug #2
I don't think this was a bug so much as my misunderstanding of DNN. There's no need for a "Main DNN" portal. As long as you have parent portals, you can manage those settings using their unique URLs.

-John

 
New Post
3/17/2006 11:10 PM
 

For future reference, John... I would recommend NOT using child portals unless you have a specific need for them.  Parent portals using cnames ( site.domain.ext ) are just as easy and somewhat less prone to some odd behavior that we occaisionally hear about.

Glad you were able to get past your main difficulties.

Cheers


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
4/26/2006 5:50 PM
 
John-
I am trying to do the same install on localhost and I was wondering:
How you setup IIS for each website?
What files reside in the folders 'c:\inetpub\dev\Portals\portal_home_portal1' and
'c:\inetpub\dev\Portals\portal_home_portal2'?
Are you using one database?
Are you using one file base to host the install?
Thanks,
Sean
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...newbie multiple portal questionnewbie multiple portal question


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out