Lemur zaprasza
Designing and Implementing Microsoft® Internet Information Server Copyright © 1996 by Sams.net Publishing Overview Acknowledgments About the Authors Introduction Is This the Book for You? What's in This Book? If You Want More. . . Designing and Implementing Microsoft® Internet Information Server Weiying Chen, Sanjaya Hettihewa, Arthur Knowles, Paolo Pappalardo Sams.net Publishing 201 West 103rd Street, Indianapolis, Indiana 46290 This book is dedicated to Jerry and Monique for their kindness, love, and friendship. I appreciate all they have done for me over the years, for without it I could never have come this far.Sanjaya Copyright © 1996 by Sams.net Publishing FIRST EDITION All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. For information, address Sams.net Publishing, 201 W. 103rd St., Indianapolis, IN 46290. International Standard Book Number: 1-57521-168-8 Library of Congress Catalog Card Number: 99 98 97 96 4 3 2 1 Interpretation of the printing code: the rightmost double-digit number is the year of the book's printing; the rightmost single-digit, the number of the book's printing. For example, a printing code of 96-1 shows that the first printing of the book occurred in 1996. Printed in the United States of America All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams.net Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. Microsoft is a registered trademark of Microsoft Corporation. President, Sams Publishing: Richard K. Swadley Publishing Manager Mark Taber Managing Editor: Cindy Morrow Marketing Manager: John Pierce Assistant Marketing Manager: Kristina Perry Acquisitions Editor Kim Spilker Development Editors Brian-Kent Proffitt Sunthar Visuvalingham Production Editor Deborah Frisby Copy Editors Fran Blauw Greg Horman Lisa Lord Technical Reviewer Jeff Bankston Christopher Stone Editorial Coordinator Bill Whitmer Technical Edit Coordinator Lynette Quinn Formatter Frank Sinclair Editorial Assistants Carol Ackerman Andi Richter Rhonda Tinch-Mize Cover Designer Tim Ahrhein Book Designer Gary Adair Copy Writer Peter Fuller Production Team Supervisor Brad Chinn Overview Introduction 1 An Internet Information Server Overview 2 A Windows NT Server Overview 3 Preparing Your System for IIS 4 Installing and Using Microsoft Internet Information Server 5 Using DHCP, WINS, and DNS 6 Windows NT and IIS Security Issues 7 Tuning Your Server 8 Publishing on the Web with Microsoft Office 9 Designing and Managing a Web Site with FrontPage 10 Introduction to Windows NT CGI Programming 11 Introducing ActiveX 12 Unleashing the Power of VBScript Acknowledgments Although an author may write the chapters by himself, developing the book into a viable project is really a team effort. As such, I would like to thank my agent, Valda Hilley, for getting me involved in the project; Sams Publishing for the opportunity; and my familymy mother Antoinette Knowles and my two cats (Kit and Kat)for their support. Special thanks go to Kim Spilker, Brian-Kent Proffitt, Sunthar Visuvalingham, and Deborah Frisby of Sams Publishing. All these people helped to make this a better book. I also would like to thank Eric Beauchamp and Alex Sampera of WinBook Computer Corporation, for without their loan of a WinBook XP5 portable computer this book could not have been completed.Arthur Knowles I'd like to thank Sunthar Visuvalingham at Sams Publishing for conceiving this timely project and offering me the opportunity to be part of it. Thanks also to Brian, Deborah, Greg, Fran, and Lisa for all their valuable comments and suggestions and for doing such a wonderful job editing my contributions to this book. I am very much indebted to Sandra for taking the time to proofread and refine my writing. You are wonderful! I also would like to thank my acquisitions editor, Kim Spilker, for suggesting the original project from which my contributions to this book are drawn. It has been a pleasure working with you and everyone else at Sams Publishing who makes books like this happen.Sanjaya Hettihewa About the Authors Weiying Chen (v-weiyc@microsoft.com) is a software developer working for Microsoft Corporation. She specializes in developing Windows NT software, including custom server applications, OLE controls, and the container applications. Her current technology focus is OLE and ActiveX. Arthur Knowles is president and founder of Knowles Consulting, a firm specializing in systems integration, training, and software development. Art is a Microsoft Certified System Engineer. His specialties include Microsoft Windows NT Server, Windows NT Workstation, SQL Server, Systems Management Server, Windows 95, and Windows for Workgroups. Art is the author of Microsoft BackOffice Administrator's Survival Guide and Internet Information Server Unleashed, and he has served as a contributing author to several books, including Windows 3.1 Configuration Secrets, Windows NT Unleashed, and Mastering Windows 95. He is the forum manager of the Portable Computers Forum on the Microsoft Network. You can reach Art on the WWW at http://www.nt-guru.com or on MSN at ART@MSN.COM. Sanjaya Hettihewa is an accomplished webmaster and a consultant specializing in integrating Windows NT based information systems on the Internet. He has been living in the Washington, D.C., area for the last six years and is a computer science major attending the University of Maryland. For the last two years, Sanjaya has done extensive research in setting up Internet information systems with Windows NT as well as exploring various ways of using Windows NT's unique features to publish information on the Internet. Sanjaya is the author of Web Site Developer's Guide for Windows NT and a co-author of Windows NT 3.51 Unleashed by Sams Publishing. Sanjaya can be reached at http://www.NetInnovation.com/ (or, if you prefer the old-fashioned way, sanjaya@NetInnovation.com). Paolo Pappalardo has more than 16 years of diverse experience in computer systems management, technical project management, and data-processing administration for the U.S. Air Force as an 1officer and in private business settings. His WWW home page site can be found at http://www.pappalardo.com. He has an MBA with particular interest and expertise in using the following tools: Windows NT Server, MS SQL Server, MS SMS, MS Internet Information Server, MS Exchange Server, Paradox, and Access. Introduction This is the way of things. You're just sitting there, a nice, easy-going MIS, enjoying the managed chaos that comes with the job. You're watching the log files, handling the occasional "I can't get my screen saver to turn off!" crisis. . .in general, a happy life. Then someone higher up the corporate food chain picks up a trade magazine or a newspaper and reads yet another story about intranets and the Internet; and this time, a light bulb goes on. Now you're in trouble. Suddenly, you're being asked to dismantle the foundations of your computer network and introduce new Internet technologies and tools to an unsuspecting corporate user base. Worse yet, you may have to reroute all of your external data communications from nice point-to-point phone transmissions into that big, scary Internethome of crackers, hackers, and cryptos. At this point, you have two choices: quit and go raise soybeans for tofu manufacturers, or find a way to deal with this new challenge in a cost-effective and simple manner. Microsoft has recently made a very forward-thinking move to help those in such a crisis: it has introduced its Internet Information Server. Thanks to Windows NT, you no longer must waste valuable time learning the ins and outs of UNIX just to set up an Internet server. Moreover, with the aid of this book that you now hold in your hands, you can use Internet Information Server to convert an NT server to a Web server in just a few minutes, without any prior knowledge of setting up Internet information systems. What does Internet Information Server (IIS) have to offer you? Basic Internet services, such as Web, FTP, and Gopher servers, and access to the publishing tools that will make them shine. Seamless integration with other NT services and administrative tools, particularly the remote administrative functionality. Many Internet service providers are providing WWW sites/server hosts using NT Server. IIS reduces cost and increases performance because you are connected to the providers' backbone. But you can still administer IIS remotely, just as if it were connected to your LAN, either through an Internet connection or via a Dial-Up (RAS) connection. Tight integration with Windows NT NTFS security model, which allows administrators to "wall off" privileged sections of their Web sites. Integration with existing databases and current Internet standards, such as Common Gateway Interface (CGI) scripts. ISAPI for high performance CGI scripts and Internet Database Connector for effortlessly publishing ODBC data sources on the Web. The IDC is very useful for publishing corporate data, searches, and dynamic publishing, and it works with any ODBC-compliant database. There is, of course, much more. Microsoft has made IIS as much a turn-key Internet platform as possible. Running on both the just-released NT Server 4 and on NT Server 3.51, IIS is a very flexible and secure tool to use for your own internal or external Internet site. Is This the Book for You? If at this moment you aren't interested in soybean farming, it's safe to assume that you'll be interested in Designing and Implementing Microsoft Internet Information Server. Leaving aside full-time farmers, who might need to have this book? The IS manager who is running a Windows NT environment or is thinking about migrating to NT soon and needs to start thinking seriously about setting up a groupware platform, like an intranet The corporate manager who has more than passing knowledge about the system her company uses and wants to explore setting up an Internet site, either internal or external The fledgling Internet service provider who is looking for a fast and secure platform and server package What's in This Book? Designing and Implementing Microsoft Internet Information Server is the flagship of Sams Publishing's upcoming line of Internet Information Server books. These books include Web Site Developer's Guide for Windows NT, Internet Information Server Unleashed, Internet Information Server Survival Guide, and ActiveX Programming Unleashed. Each chapter of this book is a condensed preview of the essential information in these books and is meant to give you the first comprehensive look into IIS. A summary of these chapters follows. Chapter 1, "An Internet Information Server Overview," provides you with exactly thata look into IIS "under the hood." The chapter also presents some of the extensions of IIS, such as Visual Basic Script, the IIS Software Development Kit, and how to plan for an Internet or intranet. In "A Windows NT Server Overview," Chapter 2 provides a look at Windows NT and some of the new features of Windows NT 4.0. You'll also explore some different server concepts, such as workgroups versus domains, and controllers versus servers. This chapter can also help you determine how adding IIS to an existing network, creating a new network, or adding a new IIS server, can be beneficial. Now that you have some background information, the book presents what you need to know to get IIS going on your system. Chapter 3, "Preparing Your System for IIS," takes you through some major pre-installation questions you'll need answered. Chapter 4, "Installing and Using Microsoft Internet Information Server," walks you step-by-step through installing and configuring IIS and its Web, FTP, and Gopher services. With IIS now up and running, you can attend to really fine-tuning IIS for optimum service. Chapter 5, "Using DHCP, WINS, and DNS," explains the finer points of the Dynamic Host Configuration Protocol, the Windows Internet Name Service, and the Internet's Domain Name Service. It also explains why you might want to use one service rather than anotheror all at once for full Internet functionality. In Chapter 6, "Windows NT and IIS Security Issues," you examine the really powerful advantages of using IISthe tools that keep your site secure from both malicious and inadvertent attacks on your network. As with any machine, there are always ways to improve, tweak, and fiddle to gain even better performance in your system. Chapter 7, "Tuning Your Server," tells you how to use NT's Performance Monitor to find those bottlenecks that can slow down your system, and the chapter recommends ways to ensure optimum performance. Once the system is humming, you'll need to do something with it. Publishing materials on the Internet used to be a mysterious, almost mystical, experience. Not so anymore. Chapter 8, "Publishing On the Web with Microsoft Office," shows you not only how to publish your first Web document but also how you may already have the tools you need to do so. Of course, there's a bit more to running a Web site than setting up a server and placing a lot of hypertext files there. In "Designing and Managing a Web Site with FrontPage," Chapter 9 gives you one of the first looks at the newest Web manager toola tool that will build and manage your Web site from scratch, including using built-in CGI scripts on your pages. But, if you're a serious Web page designer, you'll want to use your own custom CGI scripts for the best, unique interfaces on your Web site. Chapter 10, "Introduction to Windows NT CGI Programming," gets you well on your way to writing your first CGI script. Chapter 11, "Introducing ActiveX," presents Microsoft's new venture into the future of Web sites: active web pages. No longer will web pages be static pictures and forms. ActiveX controls allow site managers to create fast, fun, and very interactive web pages. If ActiveX interests you, Chapter 12, "Unleashing the Power of VBScript," is a must-read. This new derivation of Visual Basic and its capability to manipulate ActiveX controls are examined in this chapter, and the construction of some sample applications is presented. If You Want More. . . As mentioned, Designing and Implementing Microsoft Internet Information Server is only the first look Sams is offering IIS users. Much more detailed and in-depth information will be published in the weeks ahead, both on IIS itself and its related tools and technologies. Sams Publishing invites you to take a look at what interests you in our catalog and order form located in the back of this book. If you liked this book, you'll want to consider these other SAMS books by the same authors. |