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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Unable to Create PortalUnable to Create Portal
Previous
 
Next
New Post
2/20/2011 4:28 PM
 
This DotNetNuke is really kicking my butt. I am having more difficulty with this than with SharePoint. I did not think that was possible. I have created host and admin users. I was able to create a dotnetnuke site under localhost. I utilize the Portals page to create a new parent portal. But upon attempting accessing the created portal I received a 404 error. Upon reading the instructions again it appears that the location of the parent portal must exist before you create the portal. I tried to create a portal with alias of localhost, but that did not work either. I created a virtual directory in IIS and configured it as an application. Then I created a portal with an alias pointing to this virtual directory then I get "Directory Listing Denied". The error explanation reports this is due to the lack of an index or default page. Sure enough there was nothing in the virtual directory created earlier. But isn't the create of a portal supposed to be creating a web site? The instructions state that after the portal is created one can link to the new port via the portals page and view it. So why couldn't I? Despite the superuser manual, I seemingly have no clue of how this tool is supposed to work. Any assistance would be helpful.
 
New Post
2/20/2011 7:22 PM
 
Ok - you need to back up a bit and  understand how dnn works.

DNN is an application that runs in a single web site - you have obviously achieved this step.
This dnn application is able to be accessed by multiple aliases or domain names

By default when you install your first PORTAL - that portal can be set to be accessed by any number of aliases or domain names.
You do this in three steps.

Say for example you have setup your first portal on localhost and you now want it to be access as myportal.local or www.myportal.com

1. Register your domain with a DNS server / Domain registrar / Hosts file (if only being access locally for development)
if its www.myportal.com you would register with a domain registrar and DNS server
if its myportal.local you would add this to your Hosts file for local machine only access or add to your local DNS for internal access by any machines in your local environment

2. In IIS you add the domain to the bindings for the web site that dnn in hosted under.
Open your DNN web site - and add a new Binding for that domain name or alias
http myportal.local   80  * 
http www.myportal.com   80  * 

3. You then access your initial portal using localhost  or whatever you first set it up as 
Go to Admin ->  Site settings -> Portal Alias and add a new alias
myportal.local 
www.myportal.com

You can now access this FIRST portal using any one of three methods
http://localhost/
http://myportal.local/
http://www.myportal.com/

Each of these methods will give you access to the EXACT same content - which is being internally stored in the database for your portal as portalid=0.

========================

Ok - now we come to adding a SECOND portal - that being a portal that has DIFFERENT content to the first portal - but still hosted in the same web site by IIS.

You DO NOT need to create any separate virtual directories in IIS as the second portal will be running in the same web site under IIS as the first portal.

There are two options in DNN for this.
A Parent portal -  which is defined as a portal that has a DIFFERENT DOMAIN name from all other portals in the the same web site hosting 
http://www.mysecondportal.com/   or http://mysecondportal.local/  

A Child portal - which is defined as a portal that has the SAME DOMAIN name as other portals but is in a sub directory
localhost/secondportal/
myportal.local/secondportal/
www.myportal.com/secondportal/

Creating a child portal does not require changes to any area but dnn - you run the new portal wizard fill out the details and DNN creates your new portal - which has its own set of content - accessed via 

http://localhost/secondportal/
http://myportal.local/secondportal/
http://www.myportal.com/secondportal/

====

Creating a parent portal DOES require some changes in other areas much the same as creating your first portal - registration of a domain name, and setting of bindings inside IIS -  

This is how the steps should go to add a SECOND parent portal to the same DNN web site hosting - a parent portal being a portal with a unique domain name and different content to the FIRST portal.

=======================

1. Register your second domain with a DNS server / Domain registrar / Hosts file (if only being access locally for development)
if its www.mysecondportal.com you would register with a domain registrar and DNS server
if its mysecondportal.local you would add this to your Hosts file for local machine only access or add to your local DNS for internal access by any machines in your local environment

2. In IIS you add the domain to the bindings for the original web site that dnn in hosted under.

Open IIS and locate the original DNN web site - and add a new Binding for the NEW  domain name or alias
http mysecondportal.local   80  * 
http www.mysecondportal.com   80  * 

ALL ALIASES are setup in IIS in the one web site - if you are going down the multiple portals per hosting system

3. You then access your initial portal using localhost  or whatever you first set it up as 

In Host -> Portals

You add a new Parent Portal - this time using the new alias:

mysecondportal.local 
www.mysecondportal.com

DNN creates a NEW portal - portalid=1  and interally maps all calls to the new domain to this NEW parent portal.

====================
You can now access this FIRST portal  -  portalid = 0 using:
http://localhost/
http://myportal.local/
http://www.myportal.com/

You can now access the SECOND portal - portalid = 1 using
http://mysecondportal.local 
http://www.mysecondportal.com

Westa
 
New Post
2/20/2011 10:56 PM
 
Added new address to hosts file but not able to figure out how to add binding in IIS 5.1. Using IIS 5.1 in Windows XP. Add Host Header? Then presumably FQN is header name and 127.0.0.1 is header value? But when that DNS name was type into address bar of IE I am asked for a username and password and then any typed in is refused.
 
New Post
2/20/2011 11:07 PM
 
Right click website in iis 
Properties
WebSite Tab

In the website identification area
click Advanced

Add NEW

HostHeader is domain name 
80 is port
IP can be 127.0.0.1  or just Undefined.

Westa
 
New Post
2/20/2011 11:44 PM
 
Are you talking about right clicking the defaultwebsite or the dotnetnuke virtual directory? I added a host header in the defaultwebsite and under the dotnetnuke application. Either way I did so and still keep getting request for usernameand password.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Unable to Create PortalUnable to Create Portal


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