DotNetNuke Host Settings Explained 

Following the high popularity of my previous article about the DNN Scheduler I thought I would follow up with this article explaining DotNetNuke Host settings.  This article will give an overview of each section of the host settings.  Some areas might be highlighted in future articles to provide more detail regarding specific configuration options that are of high importance to site administrators.

Configuration

Host Settings

This section of your site is provided mostly to serve as an information point.  You can see which version of DNN you are currently on, the .NET framework version, ASP.NET worker process account name, and path information.  Additionally the Host GUID is provided, this GUID is something that SOME third-party modules require for licensing requirements.

The only important item to note here is the "Check for Upgrades" option.  This option will check for upgrades to DNN and any modules every time you view the module definitions page as well as DNN in the control bar.  I typically turn this option off as it helps reduce overhead and also removes the annoying images.

Host Details

Host Settings

This section of settings allows you to set host information, you can select the host portal and set host title, url, and e-mail.  The host information is used for the Host token that can be placed in a site skin.  Additionally the host e-mail account is used to send e-mail notifications to new portal registrations and a few other various e-mail notifications.

Appearance

Host Settings

This section allows you to specify site level appearance changes.  The most important item to note here is the "Show Copyright Credits?" option.  This is typically a very important item to uncheck as otherwise your site broadcasts heavily that it is a DotNetNuke site and it can impact your Search Engine Placement.  The other options allow you to change high level defaults for skins and containers..

The host skin is the skin that is applied to the host pages, the host container is the container applied to host containers.  The same respective rules apply to admin skin and container selection.

Payment Settings

Host Settings

This section allows you to configure the payment gateway for portal creations.  I do not use any of this functionality so I will not go into any detail as I am not 100% sure of the proper configuration.

Authentication Settings

Host Settings

This section was added in DNN 4.6.0 and later versions and serves as the primary location for enabling/disabling authentication providers.  You are presented a listing of all installed authentication providers, you are allowed to enable or disable any of them.  It is important to note two items regarding these settings; first be sure that you do NOT accidentally disable the DNN login system unless you have another one working, if you disable it, you MIGHT be locked out of your site.  Secondly, enabling a specific authentication provider on this page might not be the only step required to enable the authentication.  You might need to configure the provider via the "Admin" -> "Authentication" menu option.

Additionally you will find an "Install New Authentication System" option that allows you to install a new authentication provider.  In another blog article I go through the detailed process for installing a new provider.

Friendly Url Settings

Host Settings

This section is where you can create additional Friendly URL settings.  You can setup splash pages, or specific landing pages here if you want.  For example to create a page called MyHomeTest.aspx in a site and redirect that to a specific tab you can click on "Add New Rule" to add a new rule, you would then provide .*MyHomeText.aspx as the match, and then you could provide ~/Default.aspx?tabid=yourtabid for the replace with.  This will setup a simple redirect.

This is a very powerful function, however the expressions are easy to mis-construct, so use caution when working with these options if you are not familiar with Regular Expressions as it is possible to lock yourself out of a site if you configure this incorrectly.

Request Filter Settings

This section is where you can setup request filters to block or redirect users.  I have a detailed blog article on this functionality already called "Using the DotNetNuke Request Filter".  This is another items that you MUST be sure to be familiar with before you make changes.  You can use this functionality to ban users, or to handle 301 redirects for moved pages. (ASP.NET handled pages)

Proxy Settings

Host Settings

This section is only heeded if your website sits in a location where external communications will require the use of a proxy.  These configuration items are typically not modified.

SMTP Server Settings

Host Settings

These settings are the most often overlooked or misunderstood from all of my dealings with DotNetNuke users.  The SMTP settings here apply to ALL outgoing mail that is sent from the DNN system, using standard DNN processes.  You must supply your host SMTP information here for e-mail communications to be successful.  If you must specify a username and password to login to your SMTP be sure that you change the "SMTP Authentication" setting, if you provide a username and password, but still leave the setting at Anonymous you will NOT be able to send e-mail.

You can use the "Test" link to send a test message, but do not forget to save the settings before exiting the page!

Performance & Compression Settings

Host Settings

These settings can be the best or worst parts of a DotNetNuke site, with proper configuration in this section you can optimize the peformance of DNN to meet your needs.  However a mis-step in the configuration of these options can bring your entire site down.  Due to the complexity of these settings a separate follow-up article will be created to discuss my "best practices" advice relating to the caching settings for a DotNetNuke site.  Look for this article in the next few weeks.

Other Settings

Host Settings

This section is another often overlooked portion of DNN but the long term performance of your site can be greatly improved with proper configurations in this section.  Basic settings include the ability to disable Ajax (4.7.0 and later) as well as settings for Site Log storage and Site Log buffer.  Due to performance and other considerations, I personally recommend a host setting of 0 for the Site Log History.  This disables the site log and prevents a potentially critical filling of database tables.

You can turn users online on in this area as well.  Users online is disabled by default to provide the best performance possible. 

File extensions are set here that are allowed when uploading files using the File manager and URL control systems.  This is a very helpful setting as depending on the type of site you run you might need to modify this setting as well.

Scheduler Method is in my opinion one of the most important settings.  By default the "Request" method is used to start the scheduler which involves checking the system on each request to see if a scheduled task is needed.  This in my experience leads to some performance penalty.  I prefer the "Timer" method which creates a separate thread that will trigger any needed processes.

The Event Log Buffer is another item that helps with performance, rather than inserting records immediately to the Event Log the buffer will allow them to queue up and be written on a regular basis, this helps speed up Login and other processes on highly active sites.

Conclusion

I hope that this has served as a good overview of the "Host Settings" provided by DotNetNuke.  If you have any comments please share them below.  If you need technical assistance please visit the forums on this site.

Posted by Mitchel on Thursday, March 13, 2008
 

Comments

Great stuff, Mitch!

You're the 1st person (that I'm aware of) to explain what "Event Log Buffer" does. The DNN's explanation is rather vague.

By Duc Le on Thursday, March 13, 2008 at 8:12 PM

Great as usual. Just an FYI, your other settings picture is the same as the previous performance picture.

Dax

By dax on Friday, March 14, 2008 at 2:19 AM

Duc,

I am glad that you found some new information in this post!

Dax,

Thanks for bringing this to my attention, the image has been fixed!

By mitchel.sellers@gmail.com on Friday, March 14, 2008 at 4:43 AM

VERY VERY very useful !!!!

DV FX

By Declic Video on Tuesday, March 18, 2008 at 10:21 AM

Can you clarify something about the Scheduler Mode? I have a custom module in which I have created a method I want the scheduler to execute. The method depends on HttpContext being available. I thought that if I set the Scheduler Mode to Request that this would ensure that HttpContext was present. However my method fails almost all of the time. Strangely it does work sometimes, but I can't figure out what it is that causes this.
Any insight gratefully accepted.

By Laurence on Friday, May 02, 2008 at 12:02 AM

Lawrence,

From what I can tell, it isn't really safe to expect that the HttpContext will exist...as it isn't really a request.

If you want make a post in the forum, and let me know what you are trying to do and I'll see if I can help you out.

By mitchel.sellers@gmail.com on Friday, May 02, 2008 at 4:12 AM

Thanks, just posted message

By lneville on Friday, May 02, 2008 at 5:01 AM

I accidentally disable the dnn authentication module. How can I re-enable it?

By greka on Saturday, August 30, 2008 at 6:05 PM

Greka,

If you cannot login you will need to do it via SQL.

If you want, make a post in the forum and I'll help you out.

By mitchel.sellers@gmail.com on Sunday, August 31, 2008 at 8:53 AM

hello.i.have.a.problem.strange.one:)
I.installed.dot.net.nuke.4.9//till.now.everything
is.going.fine.but.when.i.log.in.like.host.and.i.click
host.setting.i.get.redirecting.loop......page.in.mozilla
Any.suggestion.please.help:))))))
very.very.strange.problem.till.now.no.solution

By Nik on Thursday, October 02, 2008 at 7:13 PM

hi Mitchel
i have an asp page that i need to redirect to a regular dnn page in my portal but dnn doesnt recognize pages that doesnt end with .aspx extension. any suggestions?

By joe on Monday, October 20, 2008 at 5:09 AM

Joe,

You will have to do the redirect in the .asp page, as .asp pages are not handled by the ASP.NET Process.

You could change the mappings, but that causes more problems that what its worth.

By mitchel.sellers@gmail.com on Monday, October 20, 2008 at 6:19 AM

Mitchel,
Thank you for your quick reply,
the problem is that this asp page doesnt exist anymore, its only showing up in the search engine among the results. so i dont have any kind of access to it. :) its strange i know.. thank you for you time

By Joe on Monday, October 20, 2008 at 6:33 AM

Joe,

You can just create a page and put it out there and have it do the redirect.

If you need further help please post the forum.

By mitchel.sellers@gmail.com on Monday, October 20, 2008 at 6:41 AM

Does the Users Online Time have any effect when Disable Users Online is checked? Do we have to explicitly set it to 0?

By Mark Nongkhlaw on Monday, February 23, 2009 at 10:51 PM

You can leave it as is.

By mitchel.sellers@gmail.com on Monday, February 23, 2009 at 10:54 PM

Is there any connection between Use Custom Error Messages and CustomErrors section in web.config?

What exactly is the function of Host-Host Settings-Basic Settings-Appearance-Use Custom Error Messages? checkbox.

I've tried using CustomErrors section of web.config with the aforesaid checkbox in both enabled and disabled state, and in both cases, my custom error page is being displayed in case of an error.

More specifically, "Use Custom Error Messages" relate to what?- page or module level errors?

By Mark Nongkhlaw on Monday, February 23, 2009 at 10:56 PM

Hi,

What is the table where this information (i.e. host settings) get stored in the DNN db ?

By Anand on Tuesday, June 02, 2009 at 1:07 AM

Sorry, Ignore the above post - I can see that these are getting stored in hostsettings table.

By Anand on Tuesday, June 02, 2009 at 1:09 AM

Mitch

Concerning disabling the Site Log setting. On most of our sites the Site Log has been disabled at the host level. Today however I was optimizing the performance settings on one of our sites and the Site Log was not disabled. Setting the log setting to zero on the host settings page did NOT disable logging. I had to go to the portal site settings page and under Advanced/Host Settings I had to set the Site Log History to zero there also. That finally did the trick.

The original setting on the Admin/Portal side was "60 days" and my Site Log had over 26.6 MILLION rows even though under host setting the log history was set to zero!

I truncated the SiteLog table and was able to shrink the database from 15,836MB (15.8 GB) down to 79MB. That is not a misprint. So I highly recommend turning off logging or at best set it to a day or two in both the Host and the Portal settings.

By Ryan Moore on Tuesday, June 16, 2009 at 11:08 AM

Ryan,

I believe you are now the winner! I think that is the LARGEST SiteLog file that I have heard about!

By mitchel.sellers@gmail.com on Tuesday, June 16, 2009 at 11:11 AM

Ok, I'm wearing my full metal jacket, prepared to hear the bad news with GoDaddy; but I just have to ask. I have tried both methods of setting my SMTP values - both anonymous with no userid or pw, and with basic and the GoDaddy email id and pw... The problem is that any CONTACT US email messages generated by a yahoo or gmail account gets lost, but all others are directed properly. Typically, GoDaddy takes no blame for this and simply stated that they will not forward from free email accounts. So, of my 5 GoDaddy clients, what's a dnn developer to do? Any help for a work-around is GREATLY appreciated! Thank you!

By dana on Tuesday, September 22, 2009 at 2:27 PM

if you are in edit mode and delete the host settings module from where you can re-add it pls ?

By Daniel Portelli on Tuesday, February 02, 2010 at 1:41 AM

Can you please explain how can i roll back the change i made in friendly url's "url eplace" expression.

thanks.

By naresh on Monday, February 08, 2010 at 6:53 PM
Click here to post a comment

Disclaimer