Craig Zacker - Author, Editor, Networker
Building Windows 98 Networks
Chapter 11. Building an Intranet

Intranet is a buzzword whose fifteen minutes of fame has come and gone, but that does not mean that the concept is any less valid. The term refers to a private TCP/IP network that is accessible only by a controlled group of users, the more common application of the term is to describe a World Wide Web server used to publish documents and/or applications for users on an internal network. Just like a web server on the Internet, LAN users can access an intranet server with a standard web browser, even if they don't have a connection to the Internet.

Small businesses can use intranet servers to publish any sort of document that users may need to access on a regular basis, including the following:

Human resources information

An intranet server is an ideal method for providing employees with information on health insurance and other benefits, as well as company policies. Human resources pages can provide links to the Internet web sites of insurance carriers and enable users to download printable forms.

Reference Documents

Virtually any documents that are frequently viewed by your network's users can be published as web pages, providing fast access to the needed information. You can make product specifications, sales literature, and contact information instantly available to phones salespeople or publish any sort of reference material needed by your users.

Software distribution

Installing new software is much more convenient when the distribution files are located on a shared network drive. You can use an intranet web page to specify the locations of application files and the procedures for installing them. In some cases, you can even create hyperlinks that launch application installation programs.

Document management

One of the benefits of having a network is the ability to share files, but one of the more irritating difficulties for network users can be locating the files you need. You can use intranet web pages to specify the locations of specific documents and provide links that load them directly into an application.

Internet links

All web browsers have the ability to save hyperlinks to favorite sites, but each user must maintain their own list of favorites. Using intranet web pages, you can create a library of links to Internet sites that provide information that is useful to your business.

Technical support

Many of the other chapters in this book describe configuration procedures that must be performed on each client workstation if the user is to run a particular application or service. Rather than having one administrator perform the same repetitive tasks on each computer, it may be better in some cases to create intranet web pages that document these procedures so that users can perform them themselves.

Web site development

If you are building your own web site for use on an Internet web server hosted by an outside service (such as your ISP), testing out your code by uploading it to the server can be inconvenient, as well as insecure. By running your own web server on your internal network, you can build the site and test it in place. If your HTML code functions properly on your intranet, then it should work equally well on the live, Internet server.

Windows 98 includes all of the tools you need to operate an intranet web server on your network and build your own web pages for it. There are also a great many third party products that you can choose to do both of these tasks. Installing and configuring these tools is not difficult; the following sections cover the basic procedures. Covering the entire process of developing a web site for either intranet or Internet use is beyond the scope of this book, but the sections that follow introduce the basic concepts involved in World Wide Web client/server communications.

Intranet Requirements

Like many network applications, the World Wide Web is based on communications between clients and servers, and these communications are exactly the same whether they take place on an intranet or on the Internet. The client part of the equation is the web browser installed on every computer on the network. The Internet Explorer browser is included with Windows 98 and installed by default, or you can choose to install the Netscape Navigator browser that is part of the Communicator package, available as a free download from Netscape's web site at http://www.netscape.com. There are still some other browsers that perform largely the same functions, but Internet Explorer and Netscape Navigator account for the vast majority of web clients in operation today.

The server part of the World Wide Web client/server equation is less well-known and is actually far simpler than the browser. Windows 98 includes the Microsoft Personal Web Server (PWS), which provides web site hosting services for use on an intranet or the Internet. Just as with browsers, there are third party web servers you can choose as well. The combination of Windows 98 and PWS is an adequate platform for hosting an intranet web site for use on a small network or for testing an Internet site prior to deployment. In most cases, however, this is not suitable for hosting an actual Internet web site. An operating system like Windows NT or Windows 2000 provides much better security, scalability, and reliability, both as a web and general use server.

In order for the web clients and the web server to communicate, you must be running the TCP/IP protocols on all of your network workstations. For more information on installing and configuring TCP/IP, see Chapter 6, Installing Network Hardware.

HTTP Servers

The web server is a relatively simple application that is designed to receive requests for files from web browsers and respond by sending the files to them. The server and browsers communicate using an application layer protocol called HTTP, the Hypertext Transfer Protocol. Hypertext is a term invented in the 1960s to describe a database that displays information and uses live links to jump to other areas of the database. In the context of the web, hypertext refers to the hyperlinks found on every web page that enable you to jump to other pages or other parts of the same page.

HTTP basically consists of request messages generated by the browser client and replies generated by the server. When you type a URL into your browser, it generates an HTTP request message containing that URL and transmits the message within a standard TCP/IP packet to the server.

The URL identifies both the server to which the message should be sent and the specific file being requested on that server. For example, in the URL http://www.mycorp.com/research/index.html, the >http:// specifies that the message will contain an HTTP request. Browsers also support other protocols like FTP, a URL for which would begin with ftp://. The www.mycorp.com part of the URL is a DNS host name that identifies the server hosting the web site. The server resides in a domain called mycorp.com on a computer with the host name >www. The /research portion of the URL identifies the directory on the web server where the requested file is located and index.html is the name of the file itself.

The only difference in this format on an intranet is that you can use the web server's NetBIOS name (that is, the computer name you supplied during the Windows 98 installation) instead of the domain name. Thus, if the NetBIOS name of the system running the server software is cz1, the URL would be http://cz1/research/index.html. Intranet servers can use domain names, but this is usually done only when a DNS server is running on the local network.

All web servers have a default file name that is assumed when no specific file name is included in the URL, usually either default.htm or index.html, depending on the web server being used. When you type a URL like http://www.mycorp.com, for example, that contains no file name, the default file on the root directory is assumed. It is the responsibility of the site's developer to use the server's default file name for the site's home page, so that users can access it easily.

The server, on receiving an HTTP request from a client, processes the URL, locates the appropriate file, packages it in an HTTP reply message, and transmits it back to the sender. The server is completely ignorant of the file’s contents and will remain so throughout the transaction. It is the responsibility of the client browser to process the file and display it properly.

In addition to simply transferring the files that make up web pages, a web server can also process application requests that either transfer an application file to the client or execute an application process on the server. Many web sites use scripts or other technologies to provide clients with more complex functions. You can use tools like Microsoft FrontPage to simplify the process of deploying more complex web page elements.

The tasks performed by web servers are quite simple; in most cases, it is the sheer volume of traffic that limits their capabilities. If you are running PWS on a Windows 98 system and you decide to connect it to the Internet using a 56 KB dedicated dial-up connection, you can support no more than two or three concurrent users comfortably, no matter how powerful a computer you use. With a cable modem connection, you can service from 10 to 20 users adequately. An intranet server running over a 10 Mbps Ethernet LAN, however, has more bandwidth available to it than all but the largest Internet sites. As a result, you will find that the web pages that you create for your intranet server will load much faster on your clients' browsers than standard Internet web pages do. Since the server transmits the pages faster, it can satisfy more requests. This means that an intranet server is capable of supporting more users than the same system could over a slower intranet connection.

HTML Clients

The browser program that generates HTTP requests and processes the replies that it receives from web servers is more complex than the server in several ways. The lingua franca of the World Wide Web is HTML (Hypertext Markup Language). An HTML file is simply an ASCII file with an .html or .htm extension containing the text that is to be displayed, plus a series of tags that specify how the text is to be displayed and that identify the other files and elements that are part of the page. In most cases, the reply packet generated by a server in response to a browser's URL request contains HTML code.

Web servers transmit files to clients without being conscious of their contents in any way. Browsers, however, have to read the files in order to display them on the screen. For example, when a browser receives an HTML file from a server in response to an HTTP request, one of the first things it does is read the contents of the file and search for image tags, which appear like this: <IMG>. HTML files use image tags to specify the names of the graphics that are to be embedded as part of the web page. The image files are not part of the HTML file; they are separate .gif or .jpg files that the server must transmit to the browser separately. On finding an <IMG> tag, the browser generates a new request to the server, requesting the image file specified immediately following the tag. Thus, displaying a web page that contains a large number of graphics may require dozens of separate HTTP requests and replies traveling between the client and the server. In addition to images, HTML files can contain references to sound and other multimedia files, scripts, and applications, as well as code (like Javascript) to executed by the browser.

Aside from requesting all of the required files from the server, the browser also uses the HTML tags to determine how it should display the data. The tags can specify the size of the text, the font it should use, its color, and its location on the screen, along with many other elements that affect the final appearance of the web page. As the browser takes these tags into account, it uses the configuration of the computer's video display to lay out the page so that it fits the browser window. If you alter the size of the window, the layout of the web page dynamically adjusts to fit the available area.

Creating HTML files for your web site is not difficult; the tags used are relatively few in number and easy to learn. However, there are also a great many products available (such as FrontPage Express, included with Windows 98) that enable you to build web pages without working directly with the HTML code. If you use Microsoft Word, for example, you can save your documents in HTML format just as easily as in Word's own DOC format, and then simply copy them to your site.

In addition, when you're creating web pages for use on an intranet, you know more about the client environment than you do on the Internet. You would know, for example, that all of your network workstations have Word installed, so you can create a hyperlink to a Word document and be certain that all of the clients can load it. On the Internet, you have no way of knowing what applications are installed on the client systems, so you can only use file formats that you know are supported by all clients.

Installing the Personal Web Server

The Microsoft Personal Web Server (PWS) included with Windows 98 consists of the following components:

Microsoft Personal Web Server

Provides basic HTTP server capabilities.

Microsoft Transaction Server

Provides support for a transaction-based programming model and runtime environment that enables you to develop web-based applications using products like Microsoft Visual Basic.

Microsoft Data Access Components

Provides the ability to create an interface between a web site and a Microsoft Access database using ActiveX objects.

Microsoft Front Page Server Extensions

Enables you to create and manage your web site using the Microsoft FrontPage or FrontPage Express web development tools.

Message Queue Server 1.0

Provides communications between web server applications.

Elements like the Transaction Server, Message Queue Server, and the Data Access Components are intended for relatively sophisticated web development projects. One of the intended functions of PWS is to be able to test web pages and applications developed for Internet and large intranet sites, so support for the more complicated development tools used to build these sites is provided. In addition to the basic HTTP server itself, the only additional component that is helpful in the development of a small intranet web site is the Front Page Server Extensions. These extensions are installed as part of the Typical PWS installation, while the other three additional modules are not. You'll learn more about using FrontPage Express to build web sites later in this chapter.

While the Personal Web Server is included in the Windows 98 release, it is not installed by default. In fact, even though the program is included in the Add/Remove Programs Control Panel, installing PWS through this interface does nothing but present you with instructions for launching the actual installation program, which you must access from the \add-ons\pws directory of the Windows 98 CD-ROM. When you run the Setup.exe program from this directory, you are prompted to select the Minimum, Typical, or Custom installation option. The Typical option requires 36.1 megabytes of disk space, and provides support for all of the features that the average beginning web site developer will need.

PWS is a scaled-down version of Microsoft’s main web server product, the Internet Information Server (IIS) package that runs on Windows NT. You can see the relationship between the two products on the installation screens displayed during the Custom installation process, which show grayed-out options for a FTP server that does not exist in the PWS release (see Figure 11-1). PWS has lower system requirements than IIS and is designed to support a relatively small number of users.

Figure 11-1: The Personal Web Server contains some of the same code as Internet Information Server

The Custom installation process enables you to select the PWS components that you want to install, and their locations. The directory that the server uses as the home directory for the WWW service will be the default location for your web site’s HTML and other files. When someone accesses the site without supplying a specific file name, it is the default HTML file in this directory (which is default.htm, by default) that the server will transmit. By default, the installation program creates a directory called C:\Inetpub\wwwroot and makes it the home directory. In most cases, beginning users will not need to run a Custom installation, A Typical installation will suffice, unless you want to install additional web server components. You can always run the setup program at a later time to add components.

The Personal Web Server runs as a service on the Windows 98, meaning that is runs in the background continuously. By default, the installation program creates an icon in the system tray that you can use to start, stop, and pause the service as needed.

As with any background process, PWS occupies some of the system resources on the computer where it is running. If a large number of clients are continually accessing the web pages hosted on the system, performance of other applications may suffer. However, on a small business or home network, there should not be a serious performance hit unless the computer is underpowered to begin with. If you plan to host your web site on a computer that also serves as a user's workstation, you should select a machine that has sufficient horsepower to do justice to both tasks. You should also make sure that the web server PC is always available. Don't run your web server on the computer that you also use for testing new hardware and software or that the user has to frequently reboot.

Connecting to an Intranet Web Server

Once the PWS installation is complete, you have to reboot the system and the service will start. The web server includes a default home page, so you can connect immediately with a browser to test it. On an intranet, you are not likely to have a DNS server that will enable you to connect to the web server using a standard DNS name, like www.mycorp.com. However, you can use the computer's NetBIOS name instead, because Windows 98 will resolve the NetBIOS name into an IP address just as it does DNS names. Thus, if the web server PC's NetBIOS name is cz2, you can simply type cz2 into the browser's URL field or, to use the complete form: http://cz2. Later, as you build your site, you can construct more complex URLs using cz2 to identify the server, just as you would with a DNS name, as in the following:

http://cz2/documents/minutes1299.html

As with an Internet web server, you can also use URLs based on the server's IP address, as follows:

http://192.168.2.2/documents/minutes1299.html

It is also possible to use a standard DNS name for the server, even if you don't have a DNS server on your network. Every TCP/IP system supports the use of a HOSTS file that contains DNS names and their equivalent IP addresses. When you specify a DNS name, such as www.mycorp.com, in a TCP/IP client application, the system checks the HOSTS file for an entry containing the name before it generates a DNS request. If an entry is present, the system uses the IP address in the file and no DNS request is needed.

Windows 98 includes a sample HOSTS file, called Hosts.sam, in the C:\Windows directory. This file contains instructions for creating the file, which is simply a list of IP addresses and their equivalent DNS names, as follows:

127.0.0.1 localhost

192.168.2.2 www.mycorp.com

Each address and name must be separated by a least one space and be on a separate line. Once you have added your entries, you must rename or copy the file to HOSTS, still in the C:\Windows directory. The only problem with using a HOSTS file for name resolution is that each computer on the network must have its own copy of the revised file. You can either edit the file on each machine or copy the revised file from one machine to all of the others.

Note: The sample HOSTS file already contains an entry for the 127.0.0.1 loopback address, giving it the name localhost. Because of this, you can simply use the name localhost as a URL in a web browser in order to connect to a web server running on the same machine. Since the loopback address works internally, this test works even if the computer is not connected to the network.

Running the Personal Web Manager

The PWS includes an application called the Personal Web Manager that you can use to administer the server and publish documents. You launch the manager from the Start Menu or by clicking the secondary mouse button on the PWS tray icon and selecting Properties from the context menu. You then see the Main page shown in Figure 11-2. The Main page specifies the URL (containing the system's NetBIOS name) that your clients can use to access the server, as well as the home directory for your site. Clicking the Stop button disables the web server, preventing people from accessing it until you restart it. The Monitoring box displays statistics for the site, including the number of current connections and the connection history.

Figure 11-2. The Personal Web Manager's main screen

Using the Home Page Wizard

The default home page that is installed with PWS is just a placeholder that you can use to test that the server is running properly. In order to create your own home page on the site, you can use the Home Page Wizard incorporated into the Personal Web Manager. Using the answers to a series of questions and text that you supply, the wizard creates a rudimentary home page.

To launch the Home Page Wizard, you open the Publish page in the Personal Web Manager and click the Home Page Wizard button. The wizard prompts you to select a template for the page's appearance and specify whether you want to include features like a guest book and a drop box (that enable users to leave public and private comments). Then, you specify the text that you want to appear on the page and the wizard produces a default home page for your server, as shown in Figure 11-3.

Figure 11-3. The Home Page Wizard creates a web page from the text and other input you supply

The Home Page Wizard does not create an HTML file for your homepage. Instead, it uses active server pages (ASP). Files with an .asp extension are active server pages, which are HTML web pages that are dynamically-created by the web server. Using a development environment like Visual Basic, the site developer programs the server to use the information you have provided as part of the newly-created HTML code for the page. You can modify the page later by opening the Web Site page in the Personal Web Manager. You can also use any of the techniques described in Creating HTML Documents, later in this chapter, to create HTML-based pages of your own to use instead of the prefabricated one produced by the wizard.

Changing the Default Web Page

On the Personal Web Manager's Advanced page (see Figure 11-4), you can see the server's settings for the default document name. Notice that the Default Document(s) field lists two file names: Default.htm and Default.asp. These are the standard default page names used by Microsoft web servers. By listing two files in this field, the server is configured to use the Default.asp file when a Default.htm file does not exist in the server's home directory.

Figure 11-4. The Personal Web Manager's Advanced configuration page

You can modify the default document names, to suit your tastes or in order to publish HTML files that already exist using another name. Microsoft web servers use Default.htm, but most other web server products use the standard UNIX home page file name: index.html. Be aware, however, that the file names specified here are active throughout your web site. If a user connects to your site by specifying a URL that contains a directory name but no file name, then the server will use the default document in that directory. If you clear the Enable Default Document checkbox, the server will not deliver any document file to a client unless a file name is specified in the URL.

The Allow Directory Browsing checkbox on the Advanced page specifies whether or not the server should display a list of the files in a directory, as shown in Figure 11-5, when there is no default document to load. This files in the list are hyperlinked, enabling users to open any file in the directory. If you clear the Enable Default Document checkbox and enable Allow Directory Browsing, the server will always display the file list for the directory specified by the client's URL (including the home directory) and will not load any .html or .asp file unless the user selects one from the list. If you clear both checkboxes, the server will not display anything but an error message unless the URL contains a specific file name.

Figure 11-5. The simplest form of web site is simply a list of the files available on the server

The Save Web Site Activity Log checkbox specifies whether or not the server should maintain a log of all the clients that have visited the site and the files that they have accessed. This information is less useful on an intranet server than an Internet one, but the only harm in collecting it is the disk space occupied by the log file. However, a web server on a small intranet is not likely to generate a huge amount of traffic.

Creating Virtual Directories

The Virtual Directories box on the Personal Web Manager's Advanced page is where you control the directory structure of your web site. When the PWS installation program creates the server's home directory, it creates the root directory of the web site. Any subdirectories you create under the home directory become valid subdirectories on the site as well.

Note: The hidden subdirectories beginning with an underscore character ("_"), created by the PWS installation program under the home directory, are part of the FrontPage server extensions. They are not intended for direct storage of web pages, nor do they appear in the server's directory browse list when no default document exists in the home directory.

When building your web site, you can create subdirectories beneath the home directory and store your documents there, but it is also possible to publish documents located outside of the home directory structure using virtual directories. A virtual directory is a directory located elsewhere on a local drive that appears to web users as a subdirectory of the site's home directory. To create a virtual directory, you select the directory that you want to publish on your site and assign it an alias, that is, the name under which it will appear in the site's directory structure.

For example, if your site's home directory is C:\Inetpub\wwwroot (the default), you can create a subdirectory under \wwwroot called \sales, and it will be accessible to users by specifying the subdirectory name as part of the URL, as in http://cz2/sales. You can also create a virtual directory by selecting a directory on the D: drive called D:\reference\marketing\docs and assigning it the alias marketing. This directory, located on a different hard drive, will then be accessible as a subdirectory called \marketing on the web site, using the URL http://cz2/marketing.

There are several advantages to using virtual directories to build your site. First, the actual locations of the files remain hidden from the site's users, which server as an additional security mechanism. Second, you can leave your documents in the original location where people normally access them. For example, you can have your company's bookkeeper continue to maintain the firm's financial spreadsheets in the usual way and publish them for the rest of the company in a virtual directory at the same time. Since web site access is read-only, there is no danger of the files being modified or damaged, nor can web users determine where the files are actually located.

To create a virtual directory, you click the Add button in the Virtual Directories box, to display the Add Directory dialog box shown in Figure 11-6. Here you can browse to the directory that you want to publish, specify an alias for the directory, and indicate what permissions you want to grant to web users accessing the directory. The available permissions are as follows:

  • Read – Enables web clients to read and download any of the files stored in the directory
  • Execute – Enables web clients to execute files stored in the directory, including scripts and Windows executables, such as .exe files
  • Scripts – Enables web clients to execute scripts stored in the directory, such as .asp files, but does not allow Windows executables to run

Figure 11-6. The Personal Web Manager’s Add Directory dialog box

Note: You can create a virtual directory out of any directory on any drive in the local machine, including CD-ROM and floppy drives, but you cannot create a virtual directory out of a drive letter mapped to a network share or out of a share chosen from the Network Neighborhood. This is a very useful feature that is available in other web server products, including Microsoft's Internet Information Server.

By default, newly created virtual directories are granted the Read and Scripts permissions, which enable client browsers to process standard HTML pages and image files, as well as active server pages and other types of scripts. Once you create the virtual directory, it appears in the Virtual Directories list on the manager’s Advanced page. However, while the directory is accessible to web users via hyperlinks on your other pages or through a URL, it does not appear in the directory browse list.

In addition to creating virtual directories, you can use this same interface to modify the location of the server's home directory. Rather than move documents into the home directory, you can move the home directory to where the documents are by highlighting the <Home> object at the root of the directory tree in the Virtual Directories box and selecting Edit Properties. As with virtual directories, the home directory can be located on any drive installed in the local machine.

Publishing Documents

Once you have the Personal Web Server installed and operating, you can begin to think about the content for your site. Running an intranet web site frees you from some of the constraints imposed on Internet sites. The Internet is intended to support virtually any type of computer, and Internet web sites are designed around platform-specific restrictions.

For example, the designer of an Internet web site has no way of knowing what fonts will be available on the client computers. Different operating systems use different names for what are fundamentally the same fonts. Although it is possible to use HTML tags to specify a particular font for displaying text on a client system, that font may not exist on certain clients, and the browser will have to substitute a font that may be substantially different. On your local network, however, you can control the fonts installed on your workstations. If you want to create a document using a specific font they don't have, you can arrange to supply it to them. In the same way, you can design your web pages around a specific screen resolution and color depth, such as 800x600 pixels and 24-bit color, because you have configured all of your client workstations to use that resolution and color depth.

These are cosmetic issues that you may consider to be important, or not. One advantage of intranet web site development is that you can concern yourself with utility over aesthetics. An intranet site need not have state-of-the-art graphics and multimedia content if you don't want it that way. You are building a tool for your users; it doesn't have to be pretty unless you want it to be.

Another benefit of an intranet site is that because of the relatively high bandwidth available, you can use larger files than would be practical on an Internet site. Image files, for example, that take up to a minute to load from the average Internet site load in a few seconds over an intranet.

Finally, when you design an intranet site, you are aware of the applications installed on the client systems. This is not true of the Internet, where you have to build sites for users that can be running any applications on any operating system. HTML provides limited screen display capabilities when compared to word processing and page layout applications, but its advantage is that HTML can be displayed on any operating system that has a compatible browser installed on it. However, on an intranet where you know that all of your users are running Microsoft Word on Windows 98 (for example), you can supply Word files on your site and be confident that all of your users can read them.

As a result, you can conceivably use your intranet web site to publish documents without employing any HTML code at all. By enabling the Allow Directory Browsing feature and deleting the default home page (Default.asp), you can provide your users with a browsable directory structure that provides access to files of any type.

Of course, HTML provides many advantages, including more complex hyperlinks and embedded images, and there are many ways in which you can develop HTML documents for use on your site. The Personal Web Manager includes a Web Publishing Wizard that simplifies the process of creating links to specific documents, while other tools aid in the process of creating new HTML documents and converting existing files into HTML format. The following sections examine some of these tools and the procedures involved in using them.

Using the Web Publishing Wizard

The Web Publishing Wizard is a tool that simplifies the process of creating links to documents on your site. In order to use it, you must first create a home page using the Home Page Wizard. After that, running the Web Publishing Wizard creates a document directory on your drive called C:\Inetpub\Webpub and publishes it on your site with the URL http://cz2/iissamples/homepage/myfiles.asp (assuming that your server's NetBIOS name is cz2). The wizard also creates a link to this page on your home page with the label View my Published Documents.

The idea behind the Web Publishing Wizard is that it copies the files you select from other drives on the computer to the \Webpub directory and automatically publishes them on the site by creating links to the files on the published documents page. This enables you to post files on your web site without having to move them from their original locations and manually create links to them. The copies of the files in the \Webpub directory are flagged as read-only, so they can't be modified, even by the application that originally created them.

To use the wizard, you open the Publish page in the Personal Web Manager to display the dialog box shown in Figure 11-7. Here you can browse to a file anywhere on the local machine and supply a description for it that the wizard will use when creating the hyperlink. Clicking the Add button builds a list of files to be published, and proceeding to the next screen creates the actual links on the site.

Figure 11-7. The Personal Web Manager's Publishing Wizard page

Note: As with virtual directories, the files that you publish on your site with the wizard must be on a local drive. You cannot select files on network drives, using either drive letters or UNC names. However, it is not difficult to install the Personal Web Server on multiple Windows 98 machines and create HTML pages that use hyperlinks to provide users with access to the files on various servers.

As described thus far, this wizard a fairly useful tool, in that it prevents the site administrator from having to create the document links by manually coding them in HTML or using another application like FrontPage Express. However, the wizard's publishing process leaves the original copy of each file in place when it publishes it, meaning that the original can still be modified as needed. If, for example, you use the wizard to publish a bookkeeper's spreadsheet, the published copy in the \Webpub directory remains unchanged, even though the bookkeeper continues to modify the other copy in its original location.

The wizard improves on this basic functionality, however, by making it possible to refresh the published documents as needed. When you select files for publication, the wizard not only copies the files to the \Webpub directory, it also keeps a record of their original locations. When you open the Publish page again, you can select Refresh Published Files from Their Originals and the wizard will overwrite the files in the \Webpub directory with a new copy from their original source directories. This simplifies the process of keeping the files published on your site up to date. Of course a service that automatically updates the files would be better still, but this feature is not included.

In addition to using the wizard to publish documents, you can also copy files directly into the C:\Inetpub\Webpub directory using Windows Explorer or any other application. Every file in that directory will automatically have a corresponding link on your web page. However, when you publish files in this way, the wizard has no way of knowing where they came from and cannot refresh them.

Creating HTML Documents

Tools like the Home Page Wizard and the Web Publishing Wizard are included with the Personal Web Server for the convenience of the user, but they are by no means the only tools for building your intranet web site. Because the wizards create web pages using active server pages, the pages are not directly editable by the average user. Also, the wizard's controls provide only limited display options. If you want to exercise more complete control over your site, you can create your own HTML web pages and publish them yourself.

There are literally dozens of tools on the market that can help you to create HTML web pages. These tools usually fall into two basic categories: editors that facilitate the creation of HTML code and WYSIWYG tools that insulate the user from working with the code. The simplest HTML coding tool is a basic text editor; nothing more is needed if you know how the HTML tags work. More specialized editing tools simplify the process of creating HTML tags by using menus and toolbars to build the proper tag syntax.

WYSIWYG tools work much like a word processor or page layout application. They provide standard controls that enable you to adjust text size and color, choose fonts, lay out a page, and insert embedded images, hyperlinks, and other objects. When you save the file, the program adds the HTML tags required to duplicate the page layout you created in a web browser.

In most cases, a beginning user that just wants to create web pages quickly and effectively is best served by a WYSIWYG tool, like the FrontPage Express application included with Windows 98.

FrontPage Express

FrontPage Express is a subset of the full FrontPage product, that provides basic web page layout and configuration capabilities. While FrontPage includes a large collection of page templates, simple web applications (called WebBots) that display counters and other functions on web pages, and other modules. FrontPage Express contains only a few basic templates and WebBots. However, it is a perfectly serviceable tool for creating standard web page elements such as text using various sizes, colors, and fonts, embedded graphics, and hyperlinks. The application interface looks very much like that of Microsoft Word and other document processing programs (see Figure 11-8). Creating a web page is as simple as opening a new document, typing some text, and formatting it as needed.

Figure 11-8. Front Page Express enables you to create web pages without working with any HTML code

When you save a page that you’ve created with FrontPage Express, you can use the URL of your web site to automatically place the HTML and other files in the appropriate places on your server. The system running FrontPage Express does not have to be a web server to do this. The Front Page Server Extensions you installed with the Personal Web Server are what enable you to do this. You can also save the pages you create as HTML files on your local drive and publish them on the server yourself.

Converting Documents

If you have a collection of documents that you want to publish on your web site in HTML format, you may be able to convert them, rather than manually recreate or cut and paste them. Many applications, such as Microsoft Word and Excel, include filters that let you save a document in HTML format. In some cases, this is as easy as choosing Save As from the File and selecting the HTML format for the output file. Once you have created your HTML files, you can simply copy them to the web server’s home directory or create subdirectories beneath the home directory.