• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3578
  • Last Modified:

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?

0
mike99c
Asked:
mike99c
  • 7
  • 6
  • 2
2 Solutions
 
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
 
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 7
  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now