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 ...invalid hostname when using host headers in IIS.invalid hostname when using host headers in IIS.
Previous
 
Next
New Post
10/13/2009 11:44 AM
 

I have the community version and pro trial of DNN 5.x.x installed on a windows 2003 server. I'm trying to use host headers with DNN and one host header works but the other does not.

example:

In IIS I have two host headers entered:
server ip (x.x.x.240), port 80, dnncomm
server ip (x.x.x.240), port 80, dnncomm.xyz.org

In DNN Alias listing I have three:
server ip (x.x.x.240)
dnncomm
dnncomm.xyz.org

In the web.config file I have:
<add key="HostHeader" value="dnncomm.xyz.org" />

In DNS I believe my network guy just entered dnncomm.xyz.org as an A record pointing it to (x.x.x.240)

So when I type in dnncomm into my address bar the site appears to work just fine, but when I type in dnncomm.xyz.org I get the following message:

Bad Request (Invalid Hostname)

Any ideas?

 
New Post
10/13/2009 2:04 PM
 

Remove all the IIS host headers and don't use them.  You only have one site in IIS, just because you use multiple names doesn't mean you use host headers.  IIS will always answer on the IP address x.x.x.240, so you just need DNS entries for those host names that resolve to that IP.

As for your error message, it has nothing to do with IIS or DNN.  You don't have a DNS entry in the xyz.org zone for the dnncomm host name.

Jeff

 
New Post
10/13/2009 6:09 PM
 

Sorry, I wasn't clear enough in my previous post. I have three websites. Two DNN sites (one is the community 5.x version and the other is the professional 5.x version) and one html static site. So yes I do need to specify different host headers, because we are using the same IP to back all three sites. At the command prompt I can ping both dnncomm and dnncomm.xyz.org and i get successful replies back from both pointing to x.x.x.240. I've listed more details below for more info. Being that I can ping all four (dnncomm, dnncomm.xyz.org, dnnpro, dnnpro.xyz.org) names with successful replies, my network guy says DNS appears to be working fine. Does this issue have to do with the DNN alias's that are in each DNN config? We are new to host headers and that is where our network team wants to go with down the road instead of assigning a new IP address to every new website on the server.

Community 5.x version
IIS host header setup: (I only used one header this time)
server ip (x.x.x.240), port 80, dnncomm

In DNN Alias listing I have three:
server ip (x.x.x.240)
dnncomm
dnncomm.xyz.org

In the web.config file I have:
<add key="HostHeader" value="dnncomm.xyz.org" />

Professional 5.x version
IIS host header setup: (I only used one header this time)
server ip (x.x.x.240), port 80, dnnpro

In DNN Alias listing I have three:
server ip (x.x.x.240)
dnnpro
dnnpro.xyz.org

In the web.config file I have:
<add key="HostHeader" value="dnnpro.xyz.org" />

TIA...

 

 
New Post
6/1/2010 12:39 PM
 

I've configured a site, installed an ecommerce with paypal option and configured the paypal settings.

The problem is: when i purchase a product and i go to the paypal page, if i return through a link to my site i obtain: Bad Request (Invalid Hostname) and the url http://www.mysite.it:8087/tabid/219/cattranssucc/false/Default.aspx

My site uses dnn 5.2.3 under IIS. I've verified that the configuration of both the paypal and the ecommerce are ok, so i think that it is related to the aliases of my site.

How can i solve this problem (very urgent) ?

Regards

[Moderator edit: fixed formatting.

 
New Post
6/15/2010 11:07 PM
 
Hey DNN.  Why all the silence and ambivolence about Host Header functionality?  From a quick google search Fred and many other DNN Admin/users have the same, unanswered question.    How can DNN mimic IIS' Host Header functionality so as to host multiple DNN sites using a single IP address?  To be clear, the goal is to have www.myDomainName.com resolve to one DNN site and www.yourDomainName.net resolve to a different DNN site hosted by the same DNN instance.

If it is already built in to the Community Edition 5x, it's very poorly documented.
Please explain.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...invalid hostname when using host headers in IIS.invalid hostname when using host headers in IIS.


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