Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  One IP address and several domains on one install of DNN on the server
Previous Previous
 
Next Next
New Post 6/25/2008 7:07 AM
User is offline Mahesh K. Anjani
40 posts
10th Ranked


Re: One IP address and several domains on one install of DNN on the server 

Hi,

 

Thanks for your quick reply.

 

I did not get your last comment “You could pull this off by simply putting the various headers into a single IIS site entry.” Can you please explain it in detail?

 

I have created three below web sites in IIS and point to the main-portal root folder. This root folder contains the “DNN” sub-folder in which I have installed the DNN.

 

  1. www.main-portal.com
  2. www.sub-portal-1.com
  3. www.sub-portal-2.com

 

When I try to access any of the above sites it doesn’t work as it points to the root folder of IIS not to the DNN site folder.

 

So I have to set portal aliases with below URLs. I have to type DNN to access the web site.

www.main-portal.com/DNN

www.sub-portal-1.com/DNN

www.sub-portal-2.com/DNN

 

How can I remove the “DNN” from above URLs? Is it possible to do it without changing the Web site pointer in IIS?

 

Thanks,

Mahesh

 
New Post 6/25/2008 2:22 PM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: One IP address and several domains on one install of DNN on the server 

As long as there isn't anything unexpected going on in your IIS configuration, just changing the portal alias in your site might be good enough.  That is, if IIS is already looking for sub-portal.com and forwarding it to your DNN install (and not sub-portal.com/dnn), then all you have to do is this...

  1. Login as a host
  2. Go to portal settings
  3. At the bottom of the page add a new portal alias matching your domain name
  4. Navigate back to your site using the domain name only (sub-portal.com/Default.aspx)
  5. If needed, log back in as as host and delete the alias that includes the sub-directory

However, if you created those other sites as child portals, this may not work.


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/3/2008 10:54 PM
User is offline Mahesh K. Anjani
40 posts
10th Ranked


Re: One IP address and several domains on one install of DNN on the server 

 Will Strohl wrote

As long as there isn't anything unexpected going on in your IIS configuration, just changing the portal alias in your site might be good enough.  That is, if IIS is already looking for sub-portal.com and forwarding it to your DNN install (and not sub-portal.com/dnn), then all you have to do is this...

  1. Login as a host
  2. Go to portal settings
  3. At the bottom of the page add a new portal alias matching your domain name
  4. Navigate back to your site using the domain name only (sub-portal.com/Default.aspx)
  5. If needed, log back in as as host and delete the alias that includes the sub-directory

However, if you created those other sites as child portals, this may not work.

Hi Will,

To access the portals we must have to type "DNN" in URL ex. sub-portal.com/dnn only then we get the dnn portal. I don't want to type "DNN" to access the portals that means sub-portal.com should be forwarded to dnn portal, but it's not happening.

How can I remove the “DNN” from above URLs? Is it possible to do it without changing the Web site pointer in IIS?

Thanks,
Mahesh

 
New Post 7/5/2008 9:43 PM
User is offline Will Strohl
1331 posts
Orlando.DotNetNukeUG.Net/
6th Ranked




Re: One IP address and several domains on one install of DNN on the server 

I see your dilema.  You should add the alias for the URL without "dnn" in it, then remove the other one.  However, if your have created the other portals as "child" portals, you may need to resort to using the URL Rewriting feature.  For instance, this may work:

LOOKFOR
(.*)/dnn/(.*)

REPLACE WITH
$1$2


Will LinkedIn profile
StrohlSiteDesign.com | My Blog | DotNetNuke® Skins by SSD
Google Toolbar Button for DNN | Suggested DNN Upgrade Paths
ODUG Web Site
 
New Post 7/9/2008 12:04 AM
User is offline Mahesh K. Anjani
40 posts
10th Ranked


Re: One IP address and several domains on one install of DNN on the server 

Hi Will,

Thanks for your replay.

I have added portal alias www.main-portal.com, www.sub-portal.com etc without "dnn" but it's not working as desired.

Let me know you one of the important thing that was missed out in previous post that there is default.asp page under the main-portal root directory which redirects all requests to <Portal-URL>/DNN

Ex. When we request www.sub-portal.com (without "DNN"), default.asp redirects it to www.sub-portal.com/DNN. This has been done because if we request the www.sub-portal.com the request don't reach to DNN portal so to be severed it by DNN website, the default.asp redirects it to <PotalName>/DNN.

FYI: following is the directory structure of my web site.
I have created three below web sites in IIS and point to the main-portal root folder. This root folder contains the “DNN” sub-folder in which I have installed the DNN.

  • www.main-portal.com
  • www.sub-portal-1.com
  • www.sub-portal-2.com
  • All the sub-portals are created as parent portal. I have still not tried the second option as my portal using DNN 4.00.03 and Friendly Url is not available in this version. But as per my knowledge when you write Friendly Url rule, to look for (.*)/dnn/(.*) and replace with $1$2 though the page Url will show the <DomainName>/DNN/ .

    How can I remove the “DNN” from above URLs? Is it possible to do it without changing the Web site pointer in IIS?

    Thanks,
    Mahesh

     
    Previous Previous
     
    Next Next
      Forum  General DotNetN...  Configure It! (...  One IP address and several domains on one install of DNN on the server
     


    Forum Policy

    These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

    For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
    2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
    3. No Flaming or Trolling.
    4. No Profanity, Racism, or Prejudice.
    5. Site Moderators have the final word on approving/removing a thread or post or comment.
    6. English language posting only, please.

     


    ASP.NET Web Hosting for $3.95
    3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
    www.dailyrazor.com
    Cestus Websites
    DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
    www.dotnetnuke-websites.nl
    FREE Skins, Modules & Control Panel!
    Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
    www.dnngroup.com

    DotNetNuke Corporation   Terms Of Use  Privacy Statement
    DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
    Hosted by MaximumASP