Internet Information Server - Instruktion Lab 6
Virtual Directory (Local)
· To create a local virtual directory
- Using Microsoft Windows NT Explorer, open the C:\Labfiles. The ASPSamp folder is displayed
- List the folders in the directory structure
- Start Internet Service Manager
- Right click Default Web Site. A pop-up menu appears
- Point to Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
- Type ASPSamp in the text box and then click Next
- Type C:\Labfiles\ASPSamp in the text box and then click Next
- Verify that Allow Read Access is selected and then click Finish
- Start Internet Explorer and type ServerX/ASPSamp in the address box. What caused This erre message?
- Switch to Internet Service Manager
- In the left pane, right click on ASPSamp and then click Properties. The ASPSamo Properties dialog box appears
- In the Virtual Directory tab, under Permissions, click Script and then click OK
- Switch to Internet Explorer an click Refresh. The Samples homepage appears
- Document the two problems on this page
Troubleshooting Virtual Directories
· To troubleshoot virtual directory problems
- In Internet Explorer, click View and then click Source. Notepad launches and displays the \Inetpub\ASPSamples\default.asp source code
- Which line refers to the missing picture?
- Which line refers to the missing link?
- There are two ways to fix the broken links. List them
- Close Notepad
- Close Internet Explorer
· To change AdvWorks into a virtual directory
- Start Internet Service Manager
- Right click Default Web Site. A pop-up menu appears
- Point to Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
- Type AdvWorks in the text box and then click Next
- Type C:\Labfiles\ASPSamp\AdvWorks in the text box and then click Next
- Click Allow Script Access. Verify that check marks appear in the boxes (Allow Read Access, Allow Script Access)
- Click Finish
- Start Internet Explorer with ServerX/ASPSamp URL. Did the picture appear? Is the link working?
- Close IE
Adding a WWW virtual server
· To configure default site to use the same IP address as the virtual server
- Switch to Internet Sevice Manager
- Right click Default Web Site ant then Properties. The dialog box appears with Web Site tab
- Click Advanced. The Advanced dialog box appears
- Click on the line displaying your IP adress and then click Edit
- Type ServerX in the Host Header Name box
- In the IP Address box type your IP address (xxx.xxx.xxx.xxx)
- Click OK (3 times)
· To add a WWW virtual server
- Start Windows NT Explorer and create folder C:\Inetpub\Vroot
- Copy the contents of C:\Inetpub\wwwroot to C:\Inetpub\Vroot
- Start Internet Service Manager and right click computer icon. Apop-up menu appears
- Click Create New and then click Web Site. A New Web Site Wizard appears
- Under Web Site Description type Virtual Web Site #1 and then click Next
- Under Select the IP Address to Use for this Web Site click on your IP address
- Click Next
- Under Ener the path for you home directory type C:\Inetpub\Vroot
- Click Allow anonymous access to this web site. A check mark appears in the box
- Click Next
- Verify that Allow Read Acces is selected and click Allow Script Access
- Click Finish
- Right click VirtualWeb Site #1 and then Properties. The dialog box appears
- Click the Home Directory tab. The Read and Script boxes should be selected
- Click the Web Site tab
- Click Advanced. The dialog box appears
- Click on the line displaying your IP address and then click Edit
- Type SeverXA in the Host Header Name box
- In the IP Address box type your IP address (xxx.xxx.xxx.xxx)
- Click OK (3 times)
· To configure computer to use DNS for host name resolution
- Open Control Panel
- Double click Network. The Network dialog box appears
- Click the Protocols tab and then double click TCP/IP protocol. The TCP/IP Properties dialog box appears
- Click the DNS table
- Type domainxxxxx in the Domain box
- Under DNS Service Search Order click Add
- The TCP/IP DNS Server dialog box appears
- Type xxx.xxx.xxx.xxx in the DNS Server box
- Click Add
- Click OK twice
· To initialize virtual Web site
- Close all instances of Internet Service Manager
- Open Control Panel
- Double click Services
- Click IIS Admin Service and then click Stop. You will be prompted to stop all services
- Click OK
- Scroll down and click World Wide Web Publishing Service
- Click Start. This clears the cache and restarts all Web sites
- Click Close (Services dialog box)
· To test virtual server
- Start Internet Explorer
- 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
- In Internet Explorer click View and then click Source. Notepad displays the source code
- What is the problem with the lines that begin with img src=?
- Close Notepad
- Close Internet Explorer
· To configur /IISSamples virtual directory for the virtual server
- Start Internet Service Manager
- Right click Virtual Web Site #1 point to Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
- Type IISSamples in the text box and then click Next
- Type C:\Inetpub\IISSamples in the text box and click Next
- Click Allow Script Access
- Verify there are check marks Allow Read Access and Allow Script Access
- Click Finish
- Start IE and type ServerXA i address box
- Close IE
- Close Management Console and save changes
Configure a Virtual Directory for ASP
· To configure a virtual directory
- Start Internet Service Manager
- Right click Default Web Site. A pop-up menu appears
- Click Create New and then click Virtual Directory. The New Virtual Directory Wizard appears
- Type Lab8 in the Alias to be used to access virtual directory text box and then click Next
- Type \Labfiles\lab08 in the text box and then click Next
- Click Allow Script Access and verify Read and Script Access
- Click Finish
· To change the security level
- Start Internet Explorer
- Click View and then Options. Options dialog box appears
- Click the Security tab
- Click Safety level. The Safety level dialog box appears
- Click Medium
- Click OK twice
· Creating an Active Server Page
- Take a simple .asp page and right click View Source in the browser window
- Is the source in the browser the same as the source at the server?
· Using the AdRotator Component
- Using Notepad examine ad.asp and ad1.asp files
- Start IE and type http://ServerX/ad.asp
- 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
- Type http://ServerX/browseca.asp to display browser's capabilities
- Check the following characteristics: browser, version, frames, tables, vbscript, jscript, activeX controls
|