Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get to default page by not putting in www.

Status
Not open for further replies.

biry

Technical User
Nov 5, 2004
127
CA
hello i can view the index page in the root folder of the web by going but when i type in company.com i get and error:Bad Request (Invalid Hostname)

what setting in iis6 may i overlooked to fix this...
thanks

B.
 
Can't you also add a DNS record to point to it?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
DNS should point to it anyway (assuming it's set up correctly) because domain.com is the hostname. The a subdomain of the hostname.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
This is really pretty simple.

1.) Make sure you have a DNS entry for yourdomain.com in DNS

2.) In IIS
- Right mouse click on the site
- Properties
- From the "Web Site" tab click on the Advanced button
- In the top box "Multiple Identities", click "Add", select your IP for this site, your port (80) and enter your root domain yourdomain.com.
- Click "OK","OK","OK" and you're ready.

We do this all of the time. You can use any fully qualified domain in he host header. It doesn't have to be the same domain (eg. fredflintstone.com/fred-flintstone.com)

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top