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 ...wwwroot directory - virtual directorywwwroot directory - virtual directory
Previous
 
Next
New Post
7/6/2006 1:48 AM
 

 Hello all,

I have had our intranet running successfully in a virtual directory for almost a year now.  One of our managers does not like the address http://servername/dotnetnuke.  They would like to keep virtual directory going for a specified period of time to allow for links for this url to still work there is also some internal links within html modules that are not relative...

He wants to get rid of the dotnetnuke and replace it with single word or servername. 

The original name of the server is also not to  his liking so they have added an alias for this.

I have changed the default website directory to dotnetnuke directory and this works on http://servername(or alias)
but when i try to navigate to original virtual directory i recieve the following error:

I am running dnn 3.2.2 on windows server 2003 IIS6.  I have added http://servername/dotnetnuke. as an alias within root directory setup.

I have read in other forums to add <clear/> to httpModules section of the web.config file but this then causes my authentication to cease.

Any help would be greatly appreciated

Server Error in '/dotnetnuke' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The module 'UrlRewrite' is already in the application and cannot be added again

Source Error:

Line 39: 		<httpModules>
Line 40: 			
Line 41: 			<add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules.UrlRewrite" />
Line 42: 			<add name="Exception" type="DotNetNuke.HttpModules.ExceptionModule, DotNetNuke.HttpModules.Exception" />
Line 43: 			<add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" />

Source File: C:\DotNetNuke_21062006\web.config    Line: 41
 
New Post
7/6/2006 11:39 AM
 
It is important where the <clear/> is located. As I understand your problem, <clear /> should be the first element in <httpModules> section, so your <httpModules> should look like this.
 
<httpModules>
    <clear />
    <add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules.UrlRewrite" />
    ...
 
 
I tested this change of web.config, all works fine.

DNN Developer Services & Support
www.flatburger.com
 
New Post
7/6/2006 7:09 PM
 
FlatBurgerLabs wrote
It is important where the is located. As I understand your problem, should be the first element in section, so your should look like this.
 

   
   
    ...
 
 
I tested this change of web.config, all works fine.

Thanks for the quick reply.  I had already had the clear tag at the start but this brings up the intranet but authentication does not work so user only sees a blank page.  I have automatic authentication (from network login).

I seem to have  it working by changing wwwroot directory location to the dnn folder.  Keeping virtual directory but having a redirect to the new http:\\<servername> and adding all relevant addresses to the http alias within dotnetnuke
- http:\\<servername>\dotnetnuke,  http:\\<servername>, http:\\<alias>\dotnetnuke, http:\\<alias>\

Seems to be running fine on my test environment.


Regards
Peter

 

 

 
New Post
7/10/2006 3:39 AM
 
So, your solution is working? Or you still need help?

DNN Developer Services & Support
www.flatburger.com
 
New Post
7/10/2006 7:19 PM
 

It has been working on test PC.  I am trying on live server this week. 

Thankyou for your response.  I will let you know if it fails.  But no extra help need at this stage

Regards

Peter.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...wwwroot directory - virtual directorywwwroot directory - virtual directory


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