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 ...Create Subdomain on localhostCreate Subdomain on localhost
Previous
 
Next
New Post
3/9/2011 2:48 AM
 
Could someone please walk me through setting up subdomains on localhost with DNN 5.6.1, IIS 7.5, Windows 7, and SQL 2008?

I've done this in the past... long time ago...  DNN 2.1.2.  But I cannot get it to work now.  And I no longer have my old setup to review.

I know that I will need to do something to IIS as well as create the portal in DNN.  In IIS I tried adding an application at the Default Web Site level.  I tried adding a virtual directory at the Default Web Site level.  I tried adding an application at the main DNN domain level.  I tried adding a virtual directory at the main DNN domain level.  And with each of those attempts I tried creating a parent portal and a child portal from my Host tab in DNN.  Nothing worked.

I'm getting the following errors in DNN:
The Portal Name Must Not Contain Spaces Or Punctuation.

The Child Portal Name You Specified Already Exists. Please Choose A Different Child Portal Name.

And I got errors in IIS trying some of those combinations.

For clarification my main domain is:
localhost/DNN/

The subdomain that I'm trying to create is:
localhost/Sub.DNN/

I haven't found specific instructions to walk me through this anywhere.  I read comments that "This can be done." and "It's easy.", but no specific instructions.  I Found a website that wants to to subscribe to it for $80 and they might be able to tell me how to do this.

Anyway, can anyone help please?  With specific instructions that even I, a new DNN newbie, might understand.

Thank you very much in advance for your consideration!
 
New Post
3/9/2011 10:19 AM
 
instead of sub domains of localhost, I suggest using a dedicated local machine alias.
Go to /windows/system32/drivers/etc folder and edit hosts file using a text editor.
To create an alias named DNN561, provide a line like 
127.0.0.1 localhost  DNN561
in IIS you need to create a web site bound to this alias and pointing to your DNN directory, which should not reside inside another Web app.
Make sure, you provide proper permissions to the windows user, configured in your IIS app pool.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/9/2011 2:10 PM
 
I still failed to make it work. I updated the host file as you stated. I created a new Web Site in IIS (at the same level as Default Web Site) with the alais of DNN561. If I leave the HostName blank then it squawks because Port 80 is already being used by Default Web Site. And it wouldn't let me put localhost/DNN561 in the HostName field. So I entered www.DNN561.com. It allowed me to create the Web Site but I can't access it with either localhost/DNN561 nor www.DNN561.com. I left the IIS app pool DefaultAppPool.

So now what do I try?
 
New Post
3/11/2011 2:08 AM
 
Thank you! Thank you! Thank you!

I got it to work!

For those that are interested here is what I did.

Added 1 line as follows to the hosts file for EACH portal:
127.0.0.1 localhost DNN561
127.0.0.1 localhost sub.DNN561

In IIS added a Web Site (at the same level as the Default Web Site NOT under it) for each portal with the following values (NOTE: For every Web Site created there should be 1 line in the hosts file and 1 DotNetNuke Parent Portal created):
Site name: DNN561
Application pool: DefaultAppPool
Physical path: C:\inetpub\wwwroot\DNN561
Type: http
IP address: All Unassigned
Port: 80
Host name: DNN561

Create another Web Site with these values (all other values are same as above):
Site name: sub.DNN561
Host name: sub.DNN561

Then browse to http://DNN561/
Login to DotNetNuke using Host account.
Create Parent Portals for Web Site

Then browse to http://sub.DNN561/
Login to DotNetNuke using Host account.
Create Parent Portals for Web Site

I did this for 9 Web Sites for 1 DNN install. 7 of which will be sub-domains when migrated to my web host server. However, for local setup / testing I created a Web Site for those 7 sub-domains just as I created a Web Site for the main domains.

All works great!

Thanks Sebastian!
 
New Post
3/11/2011 2:13 AM
 
Oh, you may need to stop and start IIS and / or close and then re-open browser and / or run ipconfig /flushdns to flush the dns. Not sure if that was needed, but I did it anyway just in case. I figured it wouldn't hurt.

Anyway, good luck to all who may be looking for info on how to setup sub domains on your localhost like I was.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Create Subdomain on localhostCreate Subdomain on localhost


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