Cấu hình web server trên windows server 2008

     

In this article

The Web server was redesigned in IIS 7.0 khổng lồ enable you to customize a hệ thống by adding or removing modules to meet your specific needs. Modules are individual features that the vps uses to lớn process requests. For example, IIS 7.0 & IIS 7.5 use authentication modules lớn authenticate client credentials & use cache modules to lớn manage cache activity. Both versions of IIS also provide:

A new management interface. The interface lets you quickly & easily change the settings for each web site. It is also possible lớn edit the settings of a website site in a text-based configuration file.The ability to mô tả tasks with website site owners. A hoster with multiple sites can delegate administrative control to developers or content owners.

Bạn đang xem: Cấu hình web server trên windows server 2008

New in IIS 7.5

IIS 7.0 & IIS 7.5 are together known as IIS 7 or IIS 7 và above; however, IIS 7.5 and Windows vps 2008 R2 include several new features not found in IIS 7.0:

Some of the extensions available lớn be added lớn the IIS 7.0 platform are integrated into the IIS 7.5 platform, including:

FTP publishing.Web-based Distributed Authoring & Versioning (WebDAV) publishing.Windows PowerShell™ snap-in for IIS.IIS Administration Pack modules.

IIS 7.5 includes configuration logging và tracing (IIS 7.0 does not include any built-in tracing mechanisms for configuration changes).

IIS 7.5 includes the Best Practice Analyzer, an automated tool for helping to lớn ensure compliance with security best practices.

Before You Begin

Ensure that you have administrative user rights on the computer on which you plan khổng lồ install IIS 7 or above. Note that by default, you vày not have administrative user rights if you are logged on as a user other than as the built-in administrator, even if you were added to lớn the local Administrators group on the computer (this is a new security feature in Windows hệ thống 2008 called Local User Administrator).

Log on either to the built-in administrator account, or explicitly invoke applications as the built-in administrator by using the runas command-line tool.


Note

You can run runas /user:administrator cmd.exe so that every application you run from that command line will be elevated, eliminating the need lớn use the runas syntax from that command line.


If you are logged on to an tài khoản other than the built-in local administrator account, you may see the following security alert dialog box.

*

Install IIS 7.5 on Windows hệ thống 2008 R2

Server Manager provides a single dashboard to install or uninstall vps roles and features. Server Manager also gives an overview of all currently installed roles and features. When IIS is chosen from the server Manager, the basic components and services needed for IIS are automatically selected.

Click Start > All Programs > Administrative Tools > Server Manager.

*
Figure 2: vps Manager

In the Server Manager window, scroll down to Roles Summary, & then click Add Roles. The Add Roles Wizard will start with a Before You Begin page. The wizard asks for verification of the following:

Select Web server (IIS) on the Select vps Roles page. An introductory page will mở cửa with links for further information.


Note

When you use the Add Roles Wizard to lớn install IIS, you get the default installation, which has a minimum set of role services. If you need additional IIS role services, such as Application Development or Health và Diagnostics, make sure lớn select the kiểm tra boxes associated with those features in the Select Role Services page of the wizard.


*
Figure 3: Select vps Roles

Select the IIS services to lớn be installed on the Select Role Services page. Showroom only the modules necessary. In this case, ASP.NET is selected, & a description of ASP.NET appears in the right pane. Once desired modules are added, click Next.

*
Figure 4: Select Role Services

Add any required role services.

*
Figure 5: Wizard warning page

IIS is now installed with a mặc định configuration for hosting ASP.NET on Windows Server. Click Close khổng lồ complete the process.

*
Figure 6: Installation Results page

Confirm that the Web vps works by using http://localhost.

*
Figure 7: mặc định Web site


Note

Install only the absolutely necessary IIS services khổng lồ minimize the IIS installation footprint. This also minimizes the attack surface, which is one of the benefits of IIS 7 & above.


Use a Script lớn Install IIS 7.5 on Windows vps 2008 R2

You can also use a script khổng lồ install IIS 7.5. Lưu ý that if you use this script, you get the full IIS installation, which installs all available feature packages. If there are feature packages you vì chưng not need, you should edit the script lớn install only the packages you require. For more information, see Installing IIS 7.5 on Windows server 2008 R2.

To install IIS 7.5 with a script, type the following at a command prompt:

CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;WAS-WindowsActivationService;WAS-ProcessModel;IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;jdomain.vnWindowsPowerShell

Unattended Installation of IIS 7.0 on Windows vps 2008

Automating the installation of IIS by using unattended scripts is very useful if you need khổng lồ deploy multiple web servers và want lớn ensure that each of the website servers is phối up with identical components và services.

Xem thêm: Win 8 Không Bắt Wifi Và Cách Khắc Phục Lỗi Wifi Win 8, Các Cách Khắc Phục Lỗi Windows 8 Không Bắt Wifi

Install IIS 7.0 on Windows hệ thống 2008

To start hệ thống Manager, click Start Menu > All Programs > Administrative Tools > Server Manager. The vps Manager window opens.

*
Figure 8: hệ thống Manager

In the Server Manager window, select Roles. The Role Summary View is displayed.

*
Figure 9: Start địa chỉ cửa hàng Roles Wizard

Click Add Roles. The showroom Roles Wizard opens. Click Next khổng lồ select roles to install.

*
Figure 10: địa chỉ cửa hàng Roles Wizard Introduction

Select Web hệ thống (IIS).

*
Figure 11: Select Web server (IIS) in địa chỉ Roles Wizard

The địa chỉ Roles Wizard notifies you of any required dependencies; since IIS depends on the Windows Process Activation Service (WAS) feature, the following informational dialog box appears. Click Add Required Role Services to lớn continue.

*
Figure 12: địa chỉ Dependencies

The Web hệ thống is now selected for install. The Select vps Roles dialog box opens. Click Next khổng lồ continue.

*
Figure 13: Selected Web vps (IIS)

The following dialog box and information appears. Click Next khổng lồ continue.

*
Figure 14: Introduction khổng lồ Web hệ thống dialog box

The add Roles Wizard displays a danh mục of all IIS 7.0 features available lớn install as shown below. Lưu ý that features comprising the default install are pre-selected.

*
Figure 15: Web hệ thống Features Listed

To install just the IIS 7.0 default features, click the Install button, & then proceed to lớn Step 14. If you need lớn install additional features, proceed to lớn step 10.

For this example, we install additional IIS features. Select the kiểm tra box for ASP.NET. The Wizard warns if adding an IIS feature will also cause other features khổng lồ be installed.

*
Figure 16: Dependency Information

Click Add Required Role Services khổng lồ continue.

Continue selecting additional IIS Role Services features to install.

*
Figure 17: địa chỉ Features For website Server

When you have selected all the features you require, click Next lớn continue.

The Wizard provides a summary of what will be installed.

*
Figure 18: Summary of Features

Click Install khổng lồ continue. The Installation Progress dialog box opens.

*
Figure 19: Install Progress

When the IIS 7.0 installation is complete, the following dialog box opens. Click Close to lớn return to the vps Manager.

*
Figure 20: Installation Summary


Chuyên mục: Domain Hosting