IIS 6.0 Learning Experience (2) - Practice

xiaoxiao2021-03-06  14

IIS6.0 Installation: Configure Server Wizards You can see a series of configurable server roles, where there is an Application Server (IIS, ASP.NET) option, select this option, click "Next", wizard Provide options for installing the ASP.NET and Microsoft FrontPage server extensions. It can be seen that Microsoft uses a new type of IIS installation strategy for "I always seeking user opinions before installing any part". For Microsoft, this is a thorough shift, which proves that Microsoft is indeed serious treatment of safety.

IIS6.0 Metabase: (1) In IIS 5.0 and IIS 4.0, configure the database to use binary file structures, but IIS 6.0 abandoned this practice. The configuration data of IIS 6.0 consists of two XML files: one is Metabase.xml, including configuration information for IIS 6.0 servers; the other is MBSChema.xml, and the mode definition of configuration data. IIS Manager provides a new feature that allows you to save configured data, just click on the web site, then select "All Tasks" → "Save the configuration to a file", then specify the file name and save path of the configuration data copy. I.e. When saving configuration data in this manner, IIS 6.0 utilizes some parts of the Machine Key encrypted configuration data, so the copy of the configuration data is only useful for the machine that created the copy. In the "Save to a File" dialog box, we can select the "Encrypt the configuration with the password" option, then specify the password, protect the exported configuration file with a password. If a password is provided, IIS 6.0 will replace the machine code with a password, and then simply provide the same password to another server. (2) If the configuration data of IIS 5.0 or IIS 4.0 is modified, IIS must be restarted. If there are many websites on the system, it may take a lot of time, such as the ISP server belongs to this. In order to solve this problem, IIS 6.0 supports a "runtime allowed editing" feature. "Runtime Allow Edit" function is enabled in the following: In the IIS Manager, right-click the server, select the menu "Properties", and then "Allow Direct Edit Configure Database" option. After the function is enabled, if we open the configuration data file with Notepad, insert a virtual directory configuration, then save and close the configuration file, IIS 6.0 can immediately change according to the settings of the configuration file, do not need to restart at all .

IIS6.0 log: In IIS 6.0, the function of the log log has been changed to http.sys, http.sys runs in kernel mode. This improvement speeds up the log write speed while avoiding multiple working processes to compete with the same log file. In the process of exploding the fault, Optimizing IIS 6.0, the HTTPERR.LOG log file is very important. By default, the httperr.log file is saved in the / system32 / logfiles directory, but can be modified, the modification method is to find the HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / SYSTEM / CURRENTCONTROLSET / Services / http / parameters registration key, add a string called ErrorLoggingDir below it. Value, set the full path to save the log file in ErrorLogGingDir. The information that can be found in the httperr.log log file includes: all 503 (unavailable) errors, idle connection times, parse various errors when the URL appears, and the last 10 submitted to the failed application pool request. Bandwidth Limit: In IIS 5.0 and IIS 4.0, the "Performance" page of the Web Website Properties dialog allows the bandwidth limit function to specify the maximum bandwidth that allows the site to take up. However, this feature does not necessarily work because IIS 5.0 and IIS 4.0 cannot directly operate the server's network card. IIS 6.0 is different. When the bandwidth limit function is enabled for the first time, the Windows 2003 automatically install the QoS packet plan program for IIS server calls. The QoS packet plan program allows the server to control the quality of service (ie, QoS), so Windows 2003 will temporarily stop all network services during the installation. After configuring the QoS Packet Scheduler, IIS really has the driver required to control the website bandwidth restriction - for ISP, this is undoubtedly a good news. The minimum bandwidth limit value allowed is 1024 BYTE / second. Don't forget to check if the NIC is in the Windows 2003 Hardware Compatibility List (HCL), because only the latest NIC supports QoS feature.

Web Garden configuration: It is actually an application pool, and multiple processes handle web requests in the pool. The specific configuration step is to open the Properties dialog of the application pool, go to the "Performance" page, enter the number of processes in the "Maximum Work Process" input box below "Web". When the load is small, IIS 6.0 automatically reduces the actual working process after a certain amount of work (default 20 minutes, configurable) after a certain time; if the load becomes large, require additional work processes, IIS 6.0 Add the number of working processes again. All this is automated without administrator intervention.

IIS6.0 Quick Configuration Four Steps:

First step, enable ASP, Enter: Control Panel -> Administrative Tools -> IIS (Internet Server) - Web Service Extensions -> Active Server Pages -> Allow Control Panel -> Administrative Tools -> IIS (Internet Server) - Web Services Extended -> In the server contains files -> Allow

In the second step, enable the parent path support. IIS- Website - Home Directory - Configuration - Option - Enable Parent Path

Step 3, Permissions Assign IIS- Website - (Specific Site) - (Right Key) Permissions - Explence Control of ISERS

Step 4: Solve an attachment that exceeds 200K in Windows 2003 IIS 6.0 and cannot download more than 4m attachment issues in IIS 6.0, the default setting is especially strict and safe, and only 204,800 bytes can be transmitted, so that Attacks can minimize attacks caused by the timeout and limitations of previously loose. (No This limit in the version before IIS 6.0) First modify the IIS settings, allow direct editing of configuration database solutions: 1, first close the IIS Admin Service service in the service. 2. Find the Metabase.xml file in Windows / System32 / InesRV /. 3, open with plain text, find AspMaxRequestentityAllowed to modify it to the required value (can be modified to 10M), the default is: 204800, ie: 200K. 4, save, then restart IIS Admin Service service.

In IIS 6.0, you cannot download more than 4m accessories, you can work out as follows: 1, first close the IIS Admin Service service in the service. 2. Find the Metabase.xml file in Windows / System32 / InesRV /. 3, open with plain text, find AspBufferingLimit to modify it to the required value (can be modified to 20M: 20480000). 4, save, then restart IIS Admin Service service.

转载请注明原文地址:https://www.9cbs.com/read-49132.html

New Post(0)