Create multiple websites using host headers with iis7

I've got a new w2008 server running iis7
I'm new to setting up websites with iis (normally use control panels)
I want to add multiple websites sharing an ip address, using host headers to identify the sites.
Have looked online for a guide, and it gets a bit confusing.
The issues I have are:
1. What to enter for the binding
2. Do I need to create a user per website?
3. When I create a new site, how do I automatically get a default/configuration/template?i
4. How do I configure DNS?
Is there a guide around that covers these issues?

mike99cAsked:
Who is Participating?
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.

AkhaterCommented:
1. in the binding enter the port number 80 or 443 the IP and in host headers enter the name this website shld reply to
2. no need for a user / website
3. i didn't understand the question
4. for DNS you just need to add an A record for the name you require pointing to the IP of that webserver
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
Andres PeralesCommented:
Great resource here - http://www.iis.net/
 
0
mike99cAuthor Commented:
2. When I used panels to create sites in the past it would create a IUSR_<domain> user for each site, and that user would have permissions set to run that site, is that something I should do here?

3. When I used to create a website in Plesk, it would create a default structure with a home page, httpdocs, logfiles, etc. When I create the site with iis, it does not create the wwwroot folder, there is no site structure created.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

AkhaterCommented:
2. no nothing

3. no there is structure created, this is a manual process, you will need to create the folder manually under wwwroot and point the website to use it
0
Andres PeralesCommented:
So you can create a folder where you would like it to reside on the server.  You can name it what you like, typically with IIS sites are stored under the inetpub directory located on the C: drive.  Most change this location for security purposes.
If you want to create a new website open IIS Manager, expand the server name, then expand sites, right click on sites and select Add Web Site.  The Add Web Site property box will display: From there Give it a Site Name, the application pool will reflect what you type.
Under Physical Path point that to the directory you created for the website earlier.
For bindings select http
IP Address: leave at All Unassigned
Port leave that set to port 80
Hostname, this is where you will enter you host header information, basically what you want the website address to be.
Click OK.
Make sure that you have a DNS entry for the host header name pointing to that server, this is how host headers work.
To create another website on the server follow the above steps for the new website.
Now one caveat.  If you want to create SSL sites, or https sites, you will HAVE to assign IP addresses to the sights.  SSL will not work with host headers.

AddWebSite.JPG
0
mike99cAuthor Commented:
Think I'm OK apart from:
4. How do I configure DNS?

I've updated the nameservers of the domain to point to the ip address of the new server. Now I think I need to add the DNS entries on the new server for this domain. Do I just need to create the A record? How do I do this?
0
AkhaterCommented:
in your EXTERNAL dns you will need to create an A record with the name you have specified as hostheader pointing to the IP of the server
0
mike99cAuthor Commented:
Thanks for the response, I don't quite understand.
Externally I've setup the DNS glue and nameservers of the domain to point to the IP address of the server.
Within the server do I need to add DNS records for the domain?
If I do a DNS check on the domain I get the namservers resolving OK to the IP address of the server, but then I get a recursive/non-authoritive error, as the server doesn't appear to be returning an A record
0
AkhaterCommented:
nothing to do withing the server that's it
0
mike99cAuthor Commented:
Looking at the DNS Manager in the server, do I need to create anything there?
0
AkhaterCommented:
if you are talking about the internal dns server there is nothing to do
0
mike99cAuthor Commented:
OK, great
So, going back to:
2. Do I need to create a user per website?

If I create a couple of sites and want to give each site their own ftp access, how do I set that up?
0
AkhaterCommented:
you do not need to create a user for each website

the ftp part is a totally different for this you will need to create users for each but not relevant to the question
0
mike99cAuthor Commented:
Great, thanks a lot for your help.
0
AkhaterCommented:
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
Microsoft IIS Web Server

From novice to tech pro — start learning today.