Internet Information Server - Instruktion Lab 4


Configuring WWW and FTP Service (Taking and test the Web site offline)
· To take default Web site offline
  1. Start the Microsoft Management Console with Internet Service Manager snap-in
  2. Double click the IIS folder in the left pane. The IIS folder opens displaying a computer icon
  3. Double click the computer icon in the left pane. The computer tree expands displaying the default sites
  4. Right click Default Web Site and then click Properties. The Default Web Site Properties dialog box appears displaying the Web Site tab
  5. Click the Home Directory tab
  6. Under Access Permissions click Read. The Read check box is cleared
  7. Click OK

· To test default Web site offline with IE
  1. Click Start and then click Run. The Run dialog box appears
  2. In the Open box type iexplore ServerX and then click OK. What is error message?

Create, install and test the custom error message
· To create the custom error message
  1. Start Notepad
  2. Create your own error file in HTML or use the code below:

    <html>
    <body>
    <h2 align=center>
    <font face= verdana color=red>
    Web site under maintenance
    </h2>
    <font face= verdana color=blue>
    "Our site is inaccessible at the moment due to maintenance. Please try again later. Thank You."
    </body>
    </html>

  3. Save the file as err403.htm in the c:\inetpub\wwwroot directory
  4. Close Notepad

· To install the custom error message
  1. Start Internet Service Manager
  2. Open the properties for the Default Web Site
  3. Click the Custom Errors tab
  4. Click on the 403;2 HTTP error
  5. Click Edit Mapping Properties. The Edit Mapping Properties dialog box appears
  6. Under Message Type select File. Type C:\Inetpub\wwwroot\err403.htm in the File box
  7. Click OK

· To test the custom error message with Internet Explorer
  1. Click Start and then click Run. The Run dialog box appears
  2. In the Open box type iexplore ServerX and then click OK.
  3. What error message does IE display

Bring the Web site online
· To take default Web site online
  1. Switch to Internet Service Manager
  2. Right click Default Web Site and then click Properties. The Default Web Site Properties dialog box appears displaying the Web Site tab
  3. Click the Home Directory tab
  4. Under Access Permissions click Read. The Read check box is checked
  5. Click OK
  6. Close the Microsoft Management Console. You are prompted to save changes
  7. Click Yes

Configuring the FTP Server
· To populate FTP site with text files
  1. Click Start, point to Find and then click Files or Folders. The Find: All Files dialog box appears.
  2. Type *.txt in the Named box and click Find Now
  3. Click Edit and then click Select All
  4. Click Edit and then click Copy
  5. Start Windows NT Explorer and then double click on Inepub. The Inetpub folder opens and displays the subfolders
  6. Right click ftproot and then click Paste. The Confirm File Replace dialog box appears
  7. Click Yes To All

· To create FTP site messages
  1. Start Internet Service Manager
  2. Double click IIS. The IIS folder displaying a computer icon
  3. Double click computer icon
  4. Right click Default FTP Site and then click Properties. The Default FTP Site Properties dialog box appears displaying the FTP Site tab
  5. Click the Messages tab
  6. Under Welcome type in a welcome message
  7. Under Exit type in exit message
  8. Under Maximum Connections type in a warning message
  9. Click OK
  10. Close Internet Service Manager. You are prompted to save the changes
  11. Click Yes

Using the FTP client
· To use the command line FTP client
  1. Open a Command Prompt
  2. Change to the \Temp directory
  3. Type the following command: dir. Notice that the directory is empty
  4. At the command prompt type ftp ServerX and press Enter key. The FTP client responds with a user prompt
  5. At the user prompt type anonymous and press Enter. The FTP client responds with a password prompt
  6. At the password prompt press the Enter. The FTP client confirms that you are logged on and responds with an FTP prompt
  7. At the FTP prompt type prompt and press Enter. This turn interactive mode off
  8. At the FTP prompt type dir and press Enter. A list of available files from \inetpub\ftproot is displayed
  9. At the FTP prompt type mget *.* and press Enter. Files are transferred from the FTP server to \temp directory
  10. At the FTP prompt type bye and press Enter key. The FTP exit message is displayed.
  11. At the command prompt type dir and press Enter. A list of transferred files in the \temp directory is displayed
  12. At the command prompt type del *.* and press Enter. This will delete the files from \temp directory

· To use the Internet Explorer FTP client
  1. Start Internet Explorer
  2. Type ftp://ServerX/ in the Address box. Internet Explorer displays the file names and attributes
  3. Click on any of the filenames
  4. Click Back. File names and attributes is displaying
  5. Right click on any of the filenames. An option menu appears
  6. Click Save Target As. A Save As dialog box appears
  7. Save the file in the \temp folder
  8. Close Internet Explorer

Modifying the default FTP port
· To modify the default FTP port
  1. Start Internet Service manager
  2. Open the properties for the default FTP Site
  3. In the FTP Site tab, change the TCP Port to 2021
  4. Click OK

Testing the modified FTP port
· To use the command line FTP client
  1. Open a Command Prompt
  2. Change to the \temp directory
  3. At the command prompt type ftp ServerX and press Enter key. What was the response?
  4. At the ftp prompt type open ServerX 2021 and press the Enter
  5. At the user prompt type anonymous and press the Enter. The FTP client response with a password prompt
  6. At the password prompt press the Enter. The FTP client confirms that you are logged on and responds with an FTP prompt
  7. At the FTP prompt type bye and press Enter. The FTP Exit message is displayed

· To use Internet Explorer FTP client
  1. Start Internet Explorer
  2. Type ftp://ServerX:2021 in the Address box and press the Enter key. What was the response from Internet Explorer? Internet Explorer displays the filenames and attributes
  3. Close Internet Explorer
  4. Close the Microsoft Management Console. You are prompted to save the changes
  5. Click Yes