Windows 2012 R2 IIs does not work without www of the domain on the browser

We have a problem with the new IIs in Windows 2012 R2. On prior versions of IIs we added two sites point the same IP and port 80 for one domain for the www.anydomain.com and the other for its anydomain.com (without WWW) and worked perfectly when you called the domain with WWW and without WWW. Now in windows 2012 R2, first we can’t add that two sites pointing to same IP and because windows 2012 R2 reject that. Then we added a site www.anydomain.com and inside that site we configured bindings to point port 80, one  both www.anydomain.com and other domain.com, but when we call the page like anydomain.com not work, just work if you put with WWW, in other words, www.anydomain.com

How can we configure the anydomain.com (without WWW), also?

Thank you
Alex E.Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian DayhoffSenior Full Stack DeveloperCommented:
This is either an issue with a misconfiguration in your A record on your DNS host, or alternately in your web.config. If the request turns up in your server access log, the issue is your web.config. If it doesn't, it's your DNS host.
0
Alex E.Author Commented:
The domain A records are the defaults of godaddy, we don’t have web.config yet in inetpub, the server is almost new.
0
Brian DayhoffSenior Full Stack DeveloperCommented:
This sometimes happens when you have nested web.configs that accidentally got stuffed in there somehow. An apache or nginx stack supports nested configurations, however IIS does not, and requires that only one config be located at the web root. A quick grep of your filebase will reveal whether or not that is your issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Brian DayhoffSenior Full Stack DeveloperCommented:
I would start off by checking both the server access log and the network tab in your web inspector to determine which server the host header is originating from. If those point to your actual server, then you would also want to look at the error log to reveal your problem. If the host header in the client is wrong and/or there is no entry in your access log, then it's definitely your DNS that is messed up.
0
Michael MachieIT SupervisorCommented:
As stated above, this could be related to how your Public and Internal DNS records are set up.
Most Hosting providers by default provide a www record that allows www.domain.com to resolve to your domain.
Many times you need to add a record with no www to point to your domain so that anyone not using www. can still reach you.
1
Michael MachieIT SupervisorCommented:
Hi,

What was the actual issue and fix? This will help others who find this question and answer.
0
Alex E.Author Commented:
Fixed the DNS’s

Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.