To configure a site on local IIS Server for testing, say, www.domain.com, use
these steps:
-
In IIS Manager, create the new site. This puts the site into IIS.
-
Right click on the machine name.
-
Create a new folder on the hard disk named 'c:\Inetpub\www-domain-com'.
-
Select New | Web Site from the menu. Press Next in the wizard.
-
Type a description of the web site. For www.domain.com, use www-domain-com.
Press Next.
-
For the host headers, use lwww.domain.com. Press next.
-
Enter the directory you created.
-
Allow read and run scripts, the default. Press next to complete the wizard.
-
Install the FrontPage Server Extensions on the web site. This allows Microsoft
tools to modify files on the web server.
-
Right click on www-domain-com and select All Tasks | Configure Server
Extensions. Press next.
-
Click next through the remaining pages of the wizard.
-
Make an entry in the Hosts file on your machine for the new web site. This
allows you to test the domain on the local machine without having to configure
DNS for the domain.
-
Open the file 'c:\<windows directory>\system32\drivers\etc\hosts.' in
notepad.
-
Add a line that has
127.0.0.1 lwww.domain.com
.
-
Save the file.
-
If you use a proxy server, you must configure Windows so that it doesn't try to
use DNS to resolve the domain name.
-
Open the Windows Control Panel.
-
Double-click on Internet Options.
-
Change to the Connections tab.
-
Press the Lan Settings button.
-
Press the Advanced button.
-
Add lwww.domain.com to the exceptions box.
-
Close all the dialogs.
-
You will now be able to use the lwww.domain.com web site on the local machine.
You will have do also do some configuration on the production web server to be
able to post the web site to it.
|