mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Adding some important hints for IIS Configuration (#18112)
- Mention the term **Web site** of IIS that acts as Virtual Hosts in other servers. - Introducing a list of helpful official IIS resources.
This commit is contained in:
@ -353,7 +353,7 @@ You can also [set up](https://unit.nginx.org/configuration/#php) your PHP enviro
|
|||||||
|
|
||||||
### IIS Configuration <span id="iis-configuration"></span>
|
### IIS Configuration <span id="iis-configuration"></span>
|
||||||
|
|
||||||
It's recommended to host the application in a virtual host where document root points to `path/to/app/web` folder. In that `web` folder you have to place a file named `web.config` i.e. `path/to/app/web/web.config`. Content of the file should be the following:
|
It's recommended to host the application in a virtual host (Web site) where document root points to `path/to/app/web` folder and that Web site is configured to run PHP. In that `web` folder you have to place a file named `web.config` i.e. `path/to/app/web/web.config`. Content of the file should be the following:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
@ -377,3 +377,6 @@ It's recommended to host the application in a virtual host where document root p
|
|||||||
</system.webServer>
|
</system.webServer>
|
||||||
</configuration>
|
</configuration>
|
||||||
```
|
```
|
||||||
|
Also the following list of Microsoft's official resources could be useful in order to configure PHP on IIS:
|
||||||
|
1. [How to set up your first IIS Web site](https://support.microsoft.com/en-us/help/323972/how-to-set-up-your-first-iis-web-site)
|
||||||
|
2. [Configure a PHP Website on IIS](https://docs.microsoft.com/en-us/iis/application-frameworks/scenario-build-a-php-website-on-iis/configure-a-php-website-on-iis)
|
||||||
|
Reference in New Issue
Block a user