Getting Started With Aspnet

Another option on the Documents tab for the Web Site Properties page is the document footer. This option is an easy and convenient way to put a footer at the bottom of all documents on your site. To do this, create a file with some HTML formatting. You should not put HTML tags such as <TITLE> or <BODY>, because they are already a part of the pages in your site. Perform steps 1 to 6 below to display the Documents tab of the Default Web Site Properties dialog box. Click Enable Document Footer and then click the Browse button to locate the HTML file you created.

HTML Footer File Example:

<bold>Copyright 2001</bold>

^Administrative Tools

^Administrative Tools

Click OK to add the new default document to your list.

_O Click Add to open the Add Default Document dialog box.

-0 Type the name of the new default document.

Internet Information Services sr Extensions |

WebSite | Operators | Performance | IS API Filters | Hor le Directory Documents Enable Default Document

Internet Information Services sr Extensions |

WebSite | Operators | Performance | IS API Filters | Hor le Directory Documents Enable Default Document

Default, htm Default, asp Default, aspx nable Document Footer a

Click OK to add the new default document to your list.

The new default document is added to the list.

Click an arrow button (Q or Q) to move the document up or down in the list.

Path c:\program files\common files\si" c:\inetpub\scripts C:\Program FilesSCommon FilesV C:\Program FilesSPhone Book Si C:\Program FilesSPhone Book Si C: \WI N N T Web's printers C:\Program FilesSMicrosoft Visus C:\books

Click OK to confirm your changes and close the dialog box.

Note: If the Inheritance Override dialog box appears, click Cancel to close the dialog box.

LE3 Click £] to close the IIS window.

Internet Information Server log files contain information about requests made to your Web server. At the time of their request, you can have IIS log a number of different details about the request. When the Enable Logging option is checked in your Web Site tab of the Properties window for your Web site, IIS logs requests.

You can choose the format in which you want the log files to be saved. The default format of W3C extended format should work for most cases, unless you have a program that requires some other format.

You can specify how often you want log files to be created for your Web site. For busier sites, hourly is appropriate. You can choose to put your log file information in the same log file by choosing Unlimited file size. You can also specify the location of the log file in the Web server. The default location of the log file is in the System32\Logfiles directory in the Windows operating system directory.

You should only use logging when it is necessary. Logging can have an impact on site performance due to its need to write to the file system. It can also be an issue if you are not removing old log files. You do not want your log files to fill up your hard drive.

CHANGE LOG FILE PROPERTIES FOR IIS

Tree

Internet Information Seivices B-J|5 * devserver

[fi-iP Default FTP Site B-i^ Administration Web Site

lil-T^ Sciipts 0-CJ _vti_bin PBSeivei PBS Data 1+lT^ Printers

[+]-Qi CrystalReportWebFormV

books

1-%. Default SMTP Virtual Server Default NNTP Virtual Server

J jJUl i^MSADC Qj Scripts Li_vti_bin Li PB Server LiPBSData Gà Printers L^CrystalRepi books m\@ \ mi ► ■ »

Path c:\program files\common files\sy c:\inetpub\scripts C: ^Program Files\Common Files\ C: ^Program Files\Phone Book Si C:^Program Files\Phone Book Si C: WINN TWeb^pr inters C: ^Program Files\M icrosoft Visuc C:\books

EJ

¡f>Go

i\ tut iriLbiriuL driu irudriei neo sm :

□ 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.

Server «tensions...

T erminal Servie...

miy Lumputer

-0 ClickS to expand the list of Web sites on the Web server (EE changes to PI).

-Q Click the Web site that you want to change.

-0 Click the Properties button

^JnUJ

Tre ijj Internet Information Serv B-JU * devserver

E-^l Default FTP Site H-g^ Administration \v 0-g§ Default Web Site El-iS? Default SMTP V E-% Default NNTPV

Directory Security | HTTP Headers | Custom Errors | Server Extensions WebSite | Operators | Performance | ISAPI Filters | Home Directory | Documents p Web Site Identification-

Description: | Default Web Site

IP Address: TCP Port:

I (All Unassigned)

(* Unlimited C Limited To: Connection Timeout: | 17 HTTP Keep-Alives Enabled

1,000 connections

(* Unlimited C Limited To: Connection Timeout: | 17 HTTP Keep-Alives Enabled

■ The Default Web Site Properties dialog box appears.

-Q Click the Web Site tab.

_Q Click □ next to Enable Logging to enable the Web site to log information ( O changes to 0 ).

Note: This option maybe enabled by default.

-0 ClickS to open the Active log format menu.

—0 Click to select the log file format that you want to use.

—, Click Properties to open the Extended Logging Properties dialog box.

You can select extended properties for assistance when troubleshooting. Click the Extended Properties tab and then click each desired extended logging option.

Log File Example:

2001-04-20 15:26:22 127.0.0.1 - 127.0.0.1 80 GET /quickstart/aspplus/Default. aspx - 200 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0;+COM++1.0.2615)

2001-04-20 15:26:22 127.0.0.1 - 127.0.0.1 80 GET /quickstart/aspplus/images/

aspplus2.gif - 304 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0; +C0M++1.0.2615)

2001-04-20 15:26:22 127.0.0.1 - 127.0.0.1 80 GET /quickstart/aspplus/doc/

toolbar.aspx - 200 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0; +C0M++1.0.2615)

2001-04-20 15:26:23 127.0.0.1 - 127.0.0.1 80 GET /quickstart/aspplus/doc/

quickstart.aspx - 200 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0; +C0M++1.0.2615) 2001-04-20 15:32:10 127.0.0.1 - 127.0.0.1 80 GET /quickstart/aspplus/doc/

whatisaspx.aspx - 200 Mozilla/4.0+(compatible;+MSIE+6.0b;+Windows+NT+5.0; +C0M++1.0.2615)

Click O to select the time period that you want to use to create new log files (O changes to

—± Type the path of the directory where you want to store log files.

■ You can also click Browse to select a directory on the computer.

Click OK to confirm the log file properties that you specify.

L-E Click OK to close the Properties dialog box.

¿"click 0 to close the Internet Information Services window.

STOP, START, OR PAUSE A WEB SITE

A Web site sometimes needs to be stopped, such as when you need to perform file maintenance, backups, or virus checks on the site. Stopping a Web site from running causes an immediate interruption of service for all users accessing the site. Any activity being performed by the Web site, such as processing an ASP.NET page or creating a file, is stopped immediately.

Some Web site configuration tasks can be performed while the site is running, but do not take effect until the site is restarted. You can stop and then start the site to apply the changes. Starting a Web site you previously stopped also enables users to once again access information on the site.

Web sites can also be paused. Pausing a Web site does not stop the site from completing any activities that are in progress, but it prevents any new activity on the Web site. For busy Web sites, it is common for Web site administrators to first pause the Web site and then wait until all activity has ceased before stopping the Web site.

With ASP.NET applications, you should not have many reasons for stopping or pausing the Web server.

STOP, START, OR PAUSE A WEB SITE

Internet Information Services

^ I Internet Information S er

^ H sa i ff ® I è S ► ■ » I

Description

1 State

Χ1 Default FTP Site

Running

Administration Web Site

Running

Default Web Site

Running

Default SMTP Virtual Server

Running

% Default NNTP Virtual Server

Manages IIS. Ihe web server for Internet and intranet web sil

STOP A WEB SITE

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

JSJJÎI

2 29 KB

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

Internet Information Services

Action View

^ Internet Information Services S-JÜ * devserver ffl-ip Default FTP Site i Administration Web Site

^.jDefault Web Site (Stopped)

MSADC Scripts Lj_vti_bin Lj PB S er ver

Default SMTP Virtual Server ŒI-% Delault NNTP Virtual Server

Lj Printers Ci CriistalReportWebForiï books

Name

I Path

11 Manages IIS, the web server (or Internet and intranet web sites.

-0 Click the Stop button (H)

c:\program filesVcommon files\s^ c:\inelpub\sciipts CAProgram FilesVCommon FilesS CAProgram FilesVPhone Book Si CAProgram FilesVPhone Book Si CAWINNT WiebSprinters CAProgram Files\Miorosoft Visuc CAbooks

^JSlxJ

Was this article helpful?

0 0

Post a comment