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 ...HOst Heasder?HOst Heasder?
Previous
 
Next
New Post
3/21/2007 6:53 PM
 
This may sound funny. But, Can someone explain to me what a host header is and what it looks like? In all the books I read, they often mention it as one of the steps, but I need see any example of it. Is it a www.myssite.com ? What is it and how do I come up with it?

Thanks
 
New Post
3/21/2007 7:43 PM
 

Yes, the host header is basically your domain address.  But it is called the host header when it is used in the context of the Web server and the Web site definition, in our case within IIS.  You see, when you define a Web site the server can use different ways to identify what content you actually want and to match the requested site to the physical files on the server.  The parameters the server can use to identify the site are the TCP/IP address, the port number, and the host header.  Now, for public sites you want to use the standard port for the HTTP protocol, in other words port 80.  Then, because TCP/IP addresses are scarce and you can host many sites on a server with just one address, the only way left for IIS to distinguish what site you want is the host header.  So yes, the host header looks like www.yourdomain.com.

Now, let's keep it simple and say that you have one installation of DNN on the server, just one physical directory with the software.  Not only can IIS host multiple Web sites but so can DNN.  So, with DNN you can create a site for Domain1.com, another totally separate for Domain2.com, etc.  In this case, you have to add the host header for each one of the sites you create in DNN to the same Web site definition in IIS.  In other words, the one Web site will respond to the requests from all these domains.  In this case you would also have to add an alias for each site in DNN.  The situation of the alias in DNN is analogous to the host header in IIS, you have one service responding to requests from possibly different sites and it needs a way to distinguish which one it is.

By the way, if you want your server to respond to both "www.yourdomain.com" as well as just "yourdomain.com" you need to add both entries as a host header for the site.

Does this help?

Carlos

 

 
New Post
3/21/2007 11:06 PM
 
Thanks Carlos,

That was extremely helpful! So, let's say I want to add more website to my one install of DNN? Will I run the website installation wizard for each host header entry and then make reference to the new domain in the alias listing in DNN or do I simply add more host header entries to the properties of the first website?
 
New Post
3/22/2007 10:50 AM
 

The answer is basically all the above.  By the way, I suppose the wizard you mention is the DNN wizard to create portals right?  Just wanted you to know that the wizard has been removed from newer versions of DNN, I would recommend you to create your new portals using the menu, which is the common way accross all versions.  You need to login as Host, go to the Host menu, then Portals, and on that screen you should see a link with the pencil icon that reads "Add New Portal".  When you click on it you get a form where you enter the info for the new portal including, you guess it, the portal alias.  The user name you enter there will be the Administrator of the new portal.

Once the new portal is created, go to the IIS admin and enter the host header for the one DNN Web site, it should match the alias you entered for the site.

By the way, if you have a dedicated, registered domain for the new portal this is easy.  If you do not, and still want to test the new portal you could use a subdomain of an already registered domain like, "newportal.olddomain.com".  In that case you enter that as both the alias and the host header.

Bonus tip, you can create any domain you like for testing and then use it for the alias and the host header.  The trick is to enter the new testing domain name in your Hosts file, located in C:\WINDOWS\system32\drivers\etc.  The Hosts file is a text file with no extension.  Just create a new line with the TCP/IP address of the server and the new domain name like:

127.0.0.1 fakedomain.com

Notice that you can do this trick even on your local machine using the address above, for a separate server use the real server address.  After you put this entry in the Host file you can use fakedomain.com in your browser to connect to the site.

Carlos

 

 
New Post
3/22/2007 12:05 PM
 

Thanks Carlos,

I do have dedicated domain names for the additional portals. Do I simply point them towards to port alias name?

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...HOst Heasder?HOst Heasder?


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