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 ...Multiple DNN Sites On Same IIS Server?Multiple DNN Sites On Same IIS Server?
Previous
 
Next
New Post
12/7/2011 10:43 AM
 

I am developing some DNN Sites / Custom Modules.  In my development environment I have a single machiene with IIS & SQL Server installed. However, I want to keep each project seperate, so I created seperate DNN installations for each project. However, I came across a problem. 

I log into Site #1 and work on whatever I am working on, then I open a new tab in my browser and log into Site #2. I notice that I immediately get logged off of Site #1. I know this because if I switch back to Site #1 and try to refresh a page, I get sent back to the Login page for that site.

Am I missing some configuration open to allow someone to be logged into different DNN Sites on the same IIS Server simultaneously?


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
12/8/2011 5:06 PM
 

There are 2 typical ways to do this -have multiple websites in IIS (either using domain names you have or using host file entries to allow for unique names http://support.microsoft.com/kb/228760 ), or by adding applications under the same IIS site e.g. localhost/dnn1 and localhost/dnn2 . If you do the second approach you have to be aware that as dotnetnuke cookies are set to domain level (/) expiring a cookie in localhost/dnn1 would expire it in localhost/dnn2. However if you're not logging in what you're seeing is collisions with same named auth cookies. If you look into your web.config you'll see a line such as

<forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies"/>

Notice that the forms auth cookie has the name .DOTNETNUKE - as these cookies are further protected by machinekeys unique this will cause your logoff issue i.e browsing from 1 site to another under the same domain with the same auth cookie but different machinekeys causing the cookie to attempt to be read by a different machinekey and fail. The easiest way to work around this is to give a unique name for each application under the same IIS website.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/12/2011 11:21 AM
 

PERFECT!  Thank you!  Using the HOSTS file did it.  I was a little confused, because before I was using different port numbers for each site, in order to tell them apart when navigating to the site.  But once I match the IIS Binding's HostName to an entry in the HOSTS file, and made each site the default port 80 again, it worked!

Thanks again!


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
5/28/2014 12:43 PM
 

Hi Mr Connolly,

On the same topic! I really need your advice on a current Ontario government DNN 4.9 Intranet site I manage. The site's IIS and SQL are hosted with our IT cluster. I manage the site remotely, doing updates via the site itself. Files for the site are additionally uploaded using the VPN/SFTP. This process has been fine for several years!

Now...the Division I work for, has had a corporate infrastructure change.  They are now 3 Divisions. I have registered the 3 new domains names. Requested IT to create a backup of the database and restore it to 3 new databases. The plan is to copy the old site to each of the new sites created on IIS and attach the 3 databases accordingly...then set the connection/s to the database for each site. All the PortalAlias's were also changed in SQL accordingly! This is a SQL server in the same farm.

Started up the sites with the new URL...get back a DotNetNuke:

 Error: invalidURl : The host name could not be parsed!

 Does changing the database HTTPPortalAlias on SQL ...get reflected on the physical site?  If not!!! How can I change this after the sites been copied? 

This may not even be the problem. Can you help me resolve this problem!  Their IIS is Windows 2008 IIS 7 R2

Darryl Peterson


 

 
New Post
5/28/2014 2:10 PM
 
Darryl, you need to make sure, you modified both connection strings in your web.config file of the cloned sites, so each site uses its dedicated database.
Each database needs to have the proper portalAlias entry, matching the binding of the IIS website being used.
For DNN 4.9, there shouldn't be a PortalSetting for primary alias or redirect, as in DNN 6/7.
You may also check, that there is no Host name mentioned in your web.config files.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Multiple DNN Sites On Same IIS Server?Multiple DNN Sites On Same IIS Server?


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