Tuesday, March 4, 2008

Windows IIS domain setup

Here's the steps for creating a site on your server:

1. Make a directory in D:\inetpub\wwwroot for your new site.

2. Add a new user by going to Computer Management in Administrative Tools.

3. Open IIS Management. Right Click on the default FTP site and choose New Virtual Directory. The Alias will be the same as the user you created in the last step. For the path, put in the path to the directory that you created in the first step. The account will need Write access to be able to upload files.

4. Right click on the default web site in IIS. Choose New Site. The description can be whatever you want, easiest is the name of the site. Choose an IP for the site. If you put the site on the shared IP address, put the domain name in the host header field. If you put the site on its own IP, then leave the host header field blank. Next, put in the path to directory where the web pages will be stored. Finally, the default permissions should be fine.

5. If you put the site on the shared IP address, right click on the new site and choose Properties. On the Web Site tab and go to Advanced. Choose Add. Give the site the same IP address as you gave it in the last step. The port will 80. The host header should be www.domainname.

6. Open the DNS administrator. Right click on Forward Lookup Zones and choose New Zone. You want to use a Standard Primary zone. For Name, put in the domain name. Choose create a new file. Once the zone is created, right click on it under Forward Lookup Zones. First choose new Mail Exchanger record. Leave Host blank and put the server that the mail is to be delivered to in Mail Server. Next, right click on the domain name again and choose New Host. For Name put in www and set the IP address to the IP that you assigned in IIS. If you set the mail exchanger to something like mail.domain.name, then you need to create a Host entry of for that host name also.

No comments: