How to configure yii2 in iis8?

IIS8 is on a virtual machine. It has a public ip address. It is necessary that this address opened my website, written in yii2 advanced. So brought the project to a folder c:\inetpub\wwwroot\мой the project folder c:\domain\мой the project\. In IIS8 manager ordered a new path to the folder c:\inetpub\wwwroot\мой project\frontend\web. There is a file web.config:
<?xml version="1.0" encoding="UTF-8"?>
<directoryBrowse enabled="false" />
 <httpRedirect enabled="false" destination="" childOnly="true" httpResponseStatus="Permanent" />
 <rule name="Hide Yii Index" enabled="true" stopProcessing="true">
 <match url="^(.*)\?*$" ignoreCase="false" />
 <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
 <action type="Rewrite" url="/index.php/{R:1}" appendQueryString="true" />

At the old address c:\domain\мой project\frontend\web browser virtual machine website opened and you can walk through the pages. But at the new address c:\inetpub\wwwroot\мой project\frontend\web opens only the home page, because it spelled out the full path. If you run the website from the computer the rest of the pages are not found (404 error incorrectly formed paths). If you run the website from the virtual machine issued a communication error with the database. Probably because the folder of phpmyadmin is located at c:\inetpub\wwwroot\admin. It turns out not work web.config. As I understand it should create a folder c:\inetpub\wwwroot\мой the project file index.php. But I can't figure out what it should write. It may have to do something else. Composer command: install init completed. Url rewrite reset. I have 2 questions:
what should be done to configure:
1. to be able to go to all the pages.
2. to browser any computer when you enter the public ip address to open my website.
If someone knows something at least one of the questions, tell me, please. I hope to help.
April 4th 20 at 00:38
1 answer
April 4th 20 at 00:40
If your virtual machine is running on the network, use the address bar the ip address of the machine instead of and localhost. Read about it. Configure the hosts themselves. Your project should be available at:

Next, configure your web server to all requests for sent in frontend/web/index.php

The question is not really related to yii it's more for setting up servers and working on the network.

Find more questions by tags YiiIIS