Internet Information Server - Instruktion Lab 6


Virtual Directory (Local)
· To create a local virtual directory
  1. Using Microsoft Windows NT Explorer, open the C:\Labfiles. The ASPSamp folder is displayed
  2. List the folders in the directory structure
  3. Start Internet Service Manager
  4. Right click Default Web Site. A pop-up menu appears
  5. Point to Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
  6. Type ASPSamp in the text box and then click Next
  7. Type C:\Labfiles\ASPSamp in the text box and then click Next
  8. Verify that Allow Read Access is selected and then click Finish
  9. Start Internet Explorer and type ServerX/ASPSamp in the address box. What caused This erre message?
  10. Switch to Internet Service Manager
  11. In the left pane, right click on ASPSamp and then click Properties. The ASPSamo Properties dialog box appears
  12. In the Virtual Directory tab, under Permissions, click Script and then click OK
  13. Switch to Internet Explorer an click Refresh. The Samples homepage appears
  14. Document the two problems on this page

Troubleshooting Virtual Directories
· To troubleshoot virtual directory problems
  1. In Internet Explorer, click View and then click Source. Notepad launches and displays the \Inetpub\ASPSamples\default.asp source code
  2. Which line refers to the missing picture?
  3. Which line refers to the missing link?
  4. There are two ways to fix the broken links. List them
  5. Close Notepad
  6. Close Internet Explorer

· To change AdvWorks into a virtual directory
  1. Start Internet Service Manager
  2. Right click Default Web Site. A pop-up menu appears
  3. Point to Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
  4. Type AdvWorks in the text box and then click Next
  5. Type C:\Labfiles\ASPSamp\AdvWorks in the text box and then click Next
  6. Click Allow Script Access. Verify that check marks appear in the boxes (Allow Read Access, Allow Script Access)
  7. Click Finish
  8. Start Internet Explorer with ServerX/ASPSamp URL. Did the picture appear? Is the link working?
  9. Close IE

Adding a WWW virtual server
· To configure default site to use the same IP address as the virtual server
  1. Switch to Internet Sevice Manager
  2. Right click Default Web Site ant then Properties. The dialog box appears with Web Site tab
  3. Click Advanced. The Advanced dialog box appears
  4. Click on the line displaying your IP adress and then click Edit
  5. Type ServerX in the Host Header Name box
  6. In the IP Address box type your IP address (xxx.xxx.xxx.xxx)
  7. Click OK (3 times)

· To add a WWW virtual server
  1. Start Windows NT Explorer and create folder C:\Inetpub\Vroot
  2. Copy the contents of C:\Inetpub\wwwroot to C:\Inetpub\Vroot
  3. Start Internet Service Manager and right click computer icon. Apop-up menu appears
  4. Click Create New and then click Web Site. A New Web Site Wizard appears
  5. Under Web Site Description type Virtual Web Site #1 and then click Next
  6. Under Select the IP Address to Use for this Web Site click on your IP address
  7. Click Next
  8. Under Ener the path for you home directory type C:\Inetpub\Vroot
  9. Click Allow anonymous access to this web site. A check mark appears in the box
  10. Click Next
  11. Verify that Allow Read Acces is selected and click Allow Script Access
  12. Click Finish
  13. Right click VirtualWeb Site #1 and then Properties. The dialog box appears
  14. Click the Home Directory tab. The Read and Script boxes should be selected
  15. Click the Web Site tab
  16. Click Advanced. The dialog box appears
  17. Click on the line displaying your IP address and then click Edit
  18. Type SeverXA in the Host Header Name box
  19. In the IP Address box type your IP address (xxx.xxx.xxx.xxx)
  20. Click OK (3 times)

· To configure computer to use DNS for host name resolution
  1. Open Control Panel
  2. Double click Network. The Network dialog box appears
  3. Click the Protocols tab and then double click TCP/IP protocol. The TCP/IP Properties dialog box appears
  4. Click the DNS table
  5. Type domainxxxxx in the Domain box
  6. Under DNS Service Search Order click Add
  7. The TCP/IP DNS Server dialog box appears
  8. Type xxx.xxx.xxx.xxx in the DNS Server box
  9. Click Add
  10. Click OK twice

· To initialize virtual Web site
  1. Close all instances of Internet Service Manager
  2. Open Control Panel
  3. Double click Services
  4. Click IIS Admin Service and then click Stop. You will be prompted to stop all services
  5. Click OK
  6. Scroll down and click World Wide Web Publishing Service
  7. Click Start. This clears the cache and restarts all Web sites
  8. Click Close (Services dialog box)

· To test virtual server
  1. Start Internet Explorer
  2. Type ServerXA in the Address box and press Enter. The IIS home page is displayed. Your virtual server is working. The graphic images is not being displayed

Troubleshooting a WWW virtual server
· To troubleshoot broken links
  1. In Internet Explorer click View and then click Source. Notepad displays the source code
  2. What is the problem with the lines that begin with img src=?
  3. Close Notepad
  4. Close Internet Explorer

· To configur /IISSamples virtual directory for the virtual server
  1. Start Internet Service Manager
  2. Right click Virtual Web Site #1 point to Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
  3. Type IISSamples in the text box and then click Next
  4. Type C:\Inetpub\IISSamples in the text box and click Next
  5. Click Allow Script Access
  6. Verify there are check marks Allow Read Access and Allow Script Access
  7. Click Finish
  8. Start IE and type ServerXA i address box
  9. Close IE
  10. Close Management Console and save changes

Configure a Virtual Directory for ASP
· To configure a virtual directory
  1. Start Internet Service Manager
  2. Right click Default Web Site. A pop-up menu appears
  3. Click Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
  4. Type Lab8 in the Alias to be used to access virtual directory text box and then click Next
  5. Type \Labfiles\lab08 in the text box and then click Next
  6. Click Allow Script Access and verify Read and Script Access
  7. Click Finish

· To change the security level
  1. Start Internet Explorer
  2. Click View and then Options. Options dialog box appears
  3. Click the Security tab
  4. Click Safety level. The Safety level dialog box appears
  5. Click Medium
  6. Click OK twice

· Creating an Active Server Page
  1. Take a simple .asp page and right click View Source in the browser window
  2. Is the source in the browser the same as the source at the server?

· Using the AdRotator Component
  1. Using Notepad examine ad.asp and ad1.asp files
  2. Start IE and type http://ServerX/ad.asp
  3. Start IE and type http://ServerX/ad1.asp. Was the same ad shown? What is the difference between ad.asp and ad1.asp files?

· Testing Browser Capabilities
  1. Type http://ServerX/browseca.asp to display browser's capabilities
  2. Check the following characteristics: browser, version, frames, tables, vbscript, jscript, activeX controls