Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (279.73 KB, 5 trang )
Get Started with IIS 7.0’s Confi guration • Chapter 15 797
2. Right click Default Web Site and choose Add Application.
3. In the Add Application dialog box, enter the information as shown in Figure 15.13, then
click OK.
Figure 15.13 Add Application Information
4. You should now see your application listed below Default Web Site in IIS Manager
(see Figure 15.14).
798 Chapter 15 • Get Started with IIS 7.0’s Confi guration
5. Now click on the server’s name in the far left pane. In our example the server’s name is
ALDERON.
6. In the middle pane of IIS Manager, scroll down to the IIS Group and double-click
Directory Browsing. After doing so you should see a screen similar to the one shown in
Figure 15.15.
7. On the right side under Actions, select Enable. This will now allow directory browsing to
be available to site administrators and application developers.
Figure 15.14 Application app in IIS Manager
Get Started with IIS 7.0’s Confi guration • Chapter 15 799
Figure 15.15 Authentication Section Group
8. Open a text editor or Visual Studio and create a web.confi g fi le similar to the one in
Figure 15.16. Save it in the C:\Test directory. Notice that in the web.confi g fi le has
directoryBrowse enabled.
800 Chapter 15 • Get Started with IIS 7.0’s Confi guration
9. Now open Internet Explorer to the following URL: http://localhost/app.
10. You should now see the C:\Test directory with your web.confi g fi le in it
(see Figure 15.17).
Figure 15.16 New Location Tag in ApplicationHost.confi g
Get Started with IIS 7.0’s Confi guration • Chapter 15 801
11. To disable it in your web.confi g change <directoryBrowse enabled=“false”/>, as you did in
Figure 15.18.
Figure 15.17 Results of Unlocking Confi guration Sections