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 Applicatio
Trang 12 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)
Trang 25 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
Trang 3Figure 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
Trang 49 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
Trang 511 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