Getting Started With Aspnet

Exlr fH Like home directories in Web sites, virtual directories can be specified as either a directory on a Web server, a share on another computer, or as a redirection to a URL. The option to create a virtual directory map to a network share or URL is not available from the virtual directory creation Wizard. To work around this, initially set out the virtual directory to be mapped to the directory. Then, change this by accessing the properties of the virtual directory and specifying a network share or URL.

You can also use virtual directories to isolate unstable sections of your Web application. A virtual directory enables you to choose the application protection level, unlike normal subdirectories of the Web site. Choose High (Isolated) for virtual directories that contain code that needs isolation from the rest of the site.

I midlldyds ll-j, LI lb ,'bj b -b IUI Hb H e IL HI j H '.,H_ : b:

The wizard confirms that you have successfully created a new virtual directory.

The wizard confirms that you have successfully created a new virtual directory.

Internet Information Sei vices B-JsJ * devserver

Administration Web Site Default Web Site Ê-® MSADC È^C^ Sciipts m-Cé _vti_bin ï PBSeivei S-CJ PB S Data l+l-T^ Printers

FlTji CwstalReportWebFormVi

Internet Information Sei vices B-JsJ * devserver

Administration Web Site Default Web Site Ê-® MSADC È^C^ Sciipts m-Cé _vti_bin ï PBSeivei S-CJ PB S Data l+l-T^ Printers

FlTji CwstalReportWebFormVi

Default ÜM I P Virtual Server Default NNTP Virtual SE

J jJUl

I midlldyds ll-j, LI lb ,'bj b -b IUI Hb H e IL HI j H '.,H_ : b:

■ The new virtual directory appears under the Web site you selected.

EQ Click S to close the Internet Information Services window.

The document that is sent to a user's browser, if no specific page is requested, is called the default document. You can specify zero to many filenames for IIS to look for when searching for the default document. If IIS does not find the document that matches the specified filenames, it sends back an error message. When directory browsing is set for the requested directory, the user sees a list of files and subdirectories instead of an error.

You can specify a different set of default documents for each directory in a Web site. When specifying a default document, you can also set the order in which

You should keep in mind some of the de facto standards when choosing the list of filenames to use in the list of default documents. Filenames like index.htm, default.aspx, default.asp, default.htm, default.html, and home.htm are some of the most common filenames used for default documents. Sticking with this as a standard will help when it comes to troubleshooting the site.

SET A DEFAULT DOCUMENT FOR IIS

SET A DEFAULT DOCUMENT FOR IIS

J Internet Information Services figji - devserver

E-S^ Default FTP Site

Administration Web Site

C¿_vti_biñ Là PB Server Cü PB SD ata c:\prograrn files\common filesSsy c:\inetpub\scripts C: ^Program Files\Common Files\ C: ^Program Files\Phone Book Si C:\Program Files\Phone Book S" C:\WINN TSweb\pr inters C:\Program Files\Microsoft Visu« C:\books

Default Web Site

J Internet Information Services figji - devserver

E-S^ Default FTP Site

Administration Web Site

E-JSt MSADC Fl-lc^ Scripts t+l-f^ _vti_bin EH^ PBServer E-Ci PBS Data B-Lj Printers ffl-fja CrystalReportWebFormVi books

Default SMTP Virtual Server % Default NNTP Virtual Server

Printers LäCrystalReportWel if: books

□ In the Control Panel, double-click Administrative Tools to open the Administrative Tools window.

Double-click Internet Services Manager to open the Internet Information Services window.

c:\prograrn files\common filesSsy c:\inetpub\scripts C: ^Program Files\Common Files\ C: ^Program Files\Phone Book Si C:\Program Files\Phone Book S" C:\WINN TSweb\pr inters C:\Program Files\Microsoft Visu« C:\books

Server «tensions...

0 Click + to expand the list of Web sites on the Web server ( + changes to I — ).

-> Click the Web site that you want to set as your default document.

^0 Click the Properties button

-Q Click □ Enable Default Document to select it (□ changes to 0 ).

■ The Default Web Site Properties dialog box appears.

-0 Click the Documents tab.

-Q Click □ Enable Default Document to select it (□ changes to 0 ).

Default Web Site

Was this article helpful?

0 0

Post a comment