|
|
 |
Using
TZO with Windows 2000 Web and FTP
Server
|
| |
(IIS 5.0 - Windows 2000 Server
only) |
| |
|
| |
Many
users with Cable and xDSL broadband connections have
Windows 2000 Professional or Server installed in
their home or small office. Windows 2000 includes IIS
5.0, complete with a Web Server, FTP Server, NNTP
News Server, and more, depending on your version of
Windows 2000. Windows 2000 Advanced Server also
includes clustering and other services. This tutorial
explains how to quickly configure your Windows 2000
SERVER EDITION with IIS 5.0. We will show you Web and
FTP examples to get you going, add sites, and use
Host Header names to direct the web users to the
proper websites, all on one IP address. One main
issue is security, and since we do not know Windows
2000 inside and out, and individual setups may vary,
we cannot guarantee your system will be 100% secure.
You should consult the Windows 2000 Manuals, and also
visit some of the resources at the bottom of this
tutorial. |
| |
|
| |
Windows 2000 Professional and Server offer an
integrated Web and FTP server from the install. If
IIS 5.0 is not installed, please follow the following
Instructions. First, check to see if IIS is installed
or not. Go to the CONTROL PANEL, select ADD/REMOVE
PROGRAMS, then select ADD/REMOVE WINDOWS COMPONENTS.
Once you are in the components list, scroll down and
look for INTERNET INFORMATION SERVER (IIS) as shown
in the screenshot below. There should be a checkmark
next to the component, if not, check it, and install
the IIS component. Once you reboot, continue below.
Please note the tutorial below is only for Windows
2000 Server. IIS 5.0 is included with Professional
edition, but you cannot create a new website as
described below. Consult your Windows 2000
Professional documentation for instructions on
configuring IIS 5.0 in Windows 2000
Professional. |
| |
|
| |
Configuring the Web Server:
Click CONTROL PANEL and then select ADMINISTRATIVE
TOOLS as shown in the screenshot below. |
| |
|
| |
 |
| |
|
| |
The Control Panel on Windows
2000 Advanced (click for larger
image) |
| |
|
| |
You can manage the server
properties through the IIS console, or through
Computer Management which you’ll find in the
Administrative Tools folder. We will show you how to
use the Internet Services manager, via the
Administrative tools group. Open the IIS console, by
clicking the INTERNET SERVICES MANAGER as shown
below. |
|
|
|
| |
 |
| |
|
| |
The INTERNET SERVICES MANAGER
in Administrative Tools (click for larger
image) |
| |
|
| |
Once you get into the IIS or
Internet Services Manager, you will see a screen that
looks like the screenshot below. This is the IIS
ADMIN INTERFACE. |
| |
|
| |
 |
| |
|
| |
The INTERNET INFORMATION
SERVICES MANAGER (click for larger
image) |
| |
|
| |
The first thing you should do is
configure master properties for Web sites. On the
Left Pane, under the TREE Tab, highlight the server
name (in this case, this server name is
Win2kAdvanced. (Keep in mind that this has NOTHING to
do with the domain name of your server/websites) Now,
right click your mouse once you have clicked on the
server name as shown above, and select
PROPERTIES. |
| |
|
| |
Select WWW Service from the MASTER
PROPERTIES drop-down list and click the EDIT button.
The changes you configure here will be a template for
all other sites you create. You can change the
properties of any site after you create it. Select
your default properties carefully, and please see the
Microsoft IIS 5.0 documentation/website for more
detail on the individual components and settings. If
you cause a problem or configure something
incorrectly, you may need to reinstall the IIS 5.0
component on the server. |
| |
|
| |
The first thing to do is to set
the default document to what you want. Most web
servers will look for the Default.htm or the
Index.htm or Index.html file in the
root directory of the website. In order to use
Index.ht* files with IIS, you need to add the file
extensions to the IIS Propeties. You should also take
the time to remove Frontpage extensions if you are
not using them. See the IIS documentation for info on
removing/disabling Frontpage server extensions. If
you do not want to add the index.htm* files to the
master properties, you can simply call your main page
default.htm |
| |
|
| |
We will start out by configuring
the DEFAULT WEBSITE, since this is needed for admin
and Internet Printing purposes. The Default Web Site
responds to WEB requests on the server for all
unassigned IP addresses. This default site acts as an
error or a main index page of all sites that are on
the server. It really depends on what you want to put
here. |
| |
|
| |
** PLEASE NOTE: By Default,
Windows 2000 Web Server does not include a
DEFAULT.HTM page in the root of the default
website. When browsing to your domain name or IP
address, you or all external Internet visitors will
see this ERROR PAGE until you define
another website as default, or assign a
default.htm file within the default
site. |
| |
|
| |
For Example: You could make
the default document for the site to include links to
each of the other sites hosted on the server, or
simply put your company logo on the main page within
the default site. The Default Web Site files are
located by default in the \Inetpub\Wwwroot folder.
Place your defalt.htm file in that folder, and you
will then see a different webpage when you or a
client try your domain externally. You can always
check your server by going to your web browser and
typing http://localhost or http://127.0.0.1, which
should loopback to your internal server. You can only
do this when you are ON THE SERVER
itself. |
| |
|
| |
Once you get your browser test
done, you will see that your server is operational,
but not handling websites, domain names, and html
content properly. This is due to Windows 2000 Web
Server does not include a DEFAULT.HTM page in
the root of the default website. When browsing to
your domain name or IP address, you or all external
Internet visitors will see this ERROR PAGE until you define
another website as default, or assign a
default.htm file within the default site.
We will assume you are not going to use the DEFAULT
WEBSITE, so we need to create a new website to start
with. In this example, we will use three domain names
to play with. These domains are: WIN2K.TZO.COM,
WIN2K.TZO.NET, and WIN2K.TZO.ORG - If you own your
own domain name, and use the TZO Premiere service,
you can use YOURNAME.COM, in place of the .TZO.COM
names in this example. |
| |
|
| |
Creating a New Website:
You now need to need to create additional sites as
needed. In order to get at least one website set up
for testing, you need to go to the IIS console,
right-click the server in the left pane and choose
NEW, WEBSITE. (See screenshot
below) |
| |
|
| |
 |
| |
|
| |
Creating a NEW WEBSITE in the
IIS Manager (click for larger image)
IIS will then present a step-by-step wizard to guide
you through the process, prompting for the following
information: If you do not know this information,
don't panic, it can be changed after the initial
setup. Here are the things you need to know for a new
site:
Description: (Screenshot)This is the name that
appears in the left pane of the IIS console for the
site name. You can use any name, but using the URL as
the name will help you instantly recognize sites. So,
in this case, we typed in WIN2K.TZO.COM, you should
also add WWW.WIN2K.TZO.COM
IP address: (Screenshot) You can specify All
Unassigned to have the site respond to all IPs bound
on the server not already associated with a site, or
you can select a specific IP. Leave this alone unless
you are assigning an IP address to each site. In this
case, we assume you have one Dynamic or Static IP on
your server, so leave this alone and on ALL
UNASSIGNED
TCP port: (Screenshot) The default port for
HTTP is port 80. You should change the default only
if your clients know the site’s port and
include it in the URL, or if you are redirecting
clients to the site from another site. Host header:
Host headers let you host multiple sites on the same
IP address and port. Specify the URL as the host
header, such as www.win2k.tzo.com
SSL port: (Screenshot) Specify the SSL port
if the site uses SSL (requires that you have already
configured certificates on the server). This option
is greyed out if you do not have a certificate
installed. The default port is 443. Home directory
path: Specify the folder containing the default
document for the Web site.
WebSite Home Directory: (Screenshot) This is the path of
the website root. By default, Windows 2000 IIS 5.0
installs the IIS Web and FTP directories in
c:\InetPub\***Root\ where *** is FTP or WWW, like
(ftproot, wwwroot) Since the default website runs
here, we created a folder called MyWebsites. The path
we entered is c:\Inetpub\Mywebsites\Website1-com\
We did this since when we add the domains
win2k.tzo.net and win2k.tzo.org, they will have their
own websites, as well as their own directories for
their HTML files, all organized under
c:\Inetpub\Mywebsites folder. See this screenshot here for a look at
our directory scructure and how we organized our
sites.
Read: (Screenshot) Allows read access
to the site,deselect to restrict reading this folder.
(ON By Default)
Run Scripts: (Screenshot) Specifies the script
access permissions for the site. (ON By Default)
Execute: (Screenshot) Specifies the file
execution (CGI) access permissions for the site. (Off
By Default)
Write: (Screenshot) Specifies the
writing access permissions for the site. (Off By
Default)
Browse: (Screenshot) Specifies the browse
access permissions for the site. This means users can
browse directories that do not have an Index or
default.htm page set. (Off By Default)
After IIS creates the site, it appears in the IIS
console, where you can edit the site properties. See
the screenshot below, which shows our domain
WIN2K.TZO.COM - This shows the website in the left
pane, and the folders and HTML files in the right
pane. In this case, we use default.htm as our default
webpage to load when visitors hit the site. To make
it easy to recognize, it says WIN2K.TZO.COM in the
page title, and in bold letters for testing purposes.
This makes is easy to see if your HTTP Headers are
working properly. |
| |
|
| |
 |
| |
|
| |
Examining a NEW WEBSITE after creation in the
IIS Manager (click for larger image) |
| |
|
| |
In
order to change the properties of this new website,
you can Right Click on the website Win2k.tzo.com and
select Properties. These are the same properties you
reviewed for the global settings in the beginning of
the tutorial, but for the site win2k.tzo.com
If you skipped over the section on configuring global
WWW properties, jump back to it to get a handle on
the properties you should review and modify for the
site. At the initial stage, at least you’ll
want to verify the default document name, site
operator list, and directory security settings. Those
will at least let you get the site up and running for
testing purposes. After you add the rest of the
domain names you want, (in this case we added 3 sites
total, WIN2K.TZO.COM, WIN2K.TZO.NET, and
WIN2K.TZO.ORG (See the Screenshot below) |
| |
|
| |
 |
| |
|
| |
Examining the 3 WEBSITES in the IIS Manager
(click for larger image)
Modify the HTML for each of the websites, and add new
websites by repeating this step. If you want to add
www.win2k.tzo.org, then repeat this exact tutorial
with that new domain or subdomain. If they are to
share the same content, simply point them to the same
folder or path, so they share the same HTML root
directory. For more detail, see your IIS
Documentation, or some of the links/websites at the
end of this tutorial |
| |
|
| |
Page 2 - Setting
Up an FTP Site |
|