IIS compression increase the performance and decrease the usage of network bandwidth.
There are two types of IIS compression:
- Static: compress and cache compressed files like (*.html, *.htm,*.doc, *.xls, *.ppt,*.txt)
- Dynamic: compress each http request without cache.
To enable Dynamic Compression ,please follow the below steps:
Go to Control Panel > Programs and Features
Turn Windows features on or off
Internet Information Services > World Wide Web Services > Performance Features
Windows Server 2008 R2
Go to Server Manager > Roles > Web Server (IIS) > Add Role Services
Windows Server 2012
Server Manger > Dashboard > Add roles and features
When deploying a WCF service to IIS7 on top of Windows 7 and browse it, you may got the following error
HTTP Error 404.2 – Not Found
The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.
Solution Open IIS Manager This will open the below screen. Put check on below screen After the two changes, the screen should be like below Try now
When you get an error like 401,404 or 500 you want to troubleshoot it, the first thing you should do is determine what “type” (i.e. HTTP sub status).
Go to %SYSTEMROOT%\System32\LogFiles\W3SVC########\
Replace ########with the number in the above screen
The W3C log entries look like the following, with the HTTP status, substatus, and Win32
error codes highlighted.
For all HTTP Status code, visit here : The HTTP status code in IIS 7.0, IIS 7.5, and IIS 8.0