Directory:
Recommended (free) :IIS
What is IIS Express?
IIS Express is a lightweight, self-contained version of IIS optimized for developers. IIS Express makes it easy to develop and test websites using the latest version of IIS available today. It has all the core features of IIS 7 and above, plus additional features designed to simplify website development.
IIS Express is derived from IIS 7 and above and supports the core features of IIS, but with some key differences. An important difference is the management of worker processes. In IIS, the Windows Process Activation Service (WAS) is a web application that is silently activated and deactivated without direct control by the user. In IIS Express, WAS does not exist and users have full control over application activation and deactivation. It will be displayed in the system tray after startup. Already running websites can be started and stopped manually. Hostable Web Core (HWC) is an IIS API that can be used to write standalone web servers, but is not managed by WAS. IIS Express is designed as a shell on top of the HWC.
How to install IIS Express
It will be installed by default when Visual Studio is installed.
It can also be installed independently. The latest version is now 10.0.
IIS 7.5 Express download address: https://www.microsoft.com/zh-cn/download/details.aspx?id= 1038
IIS 8.0 Express download address: https://www.microsoft.com/zh-cn/download/details.aspx?id=34679
IIS 10.0 Express download address: https: //www.microsoft.com/zh-cn/download/details.aspx?id=48264
How to start IIS Express
General installation path of IIS Express:
C:\Program Files\IIS Express
2. Start the website
iisexpress.exe /siteid:96
3.启动临时网站
iisexpress /path:
Configuration file
By default, the configuration file used by IIS Express is located in "My Documents" with the following path: "My Documents\IIS Express\Config ". Among them, applicationhost.config is the core configuration file, which is used to host the definition of the site, applications and application pools, and the configuration of the entire WEB server.
1. Each node is configured with a website
2. The binding information of this site is set below.
IIS Express only supports local connections by default and cannot be accessed by IP.
Note that after modifying the configuration file, enter q in the command line window to exit, and then reload it to take effect. [Testing on the same machine]
You can also enable external lianjie to open external connections
(have not tried it)
netsh http add urlacl url=http://*:{port number}/ user= everyone
Close external connection
n
netsh http delete urlacl url=http://*:{port number}/
The above is the detailed content of Introduction and use of IIS Express. For more information, please follow other related articles on the PHP Chinese website!