Как установить путь к домену на виртуальной машине Azure

Tatyana Rudneva 1 Reputation point
2019-12-23T07:49:39.847+00:00

Какие установки мне надо задать на виртуальной машине, чтобы при вводе в адресной строке браузера "Mysite.ru" отображался сайт.

Мои данные:

  1. Имя виртуальной машины - Mysite. Машина находится на Azure.
  2. ОС - windows server 2012 datacenter
  3. Папка Mysite находится по адресу - c:\domains\
  4. Установлен Yii2 advanced
  5. В корневой папке Mysite установлен файл .htaccess:
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
  1. В файлах \Mysite\common\config\params.php и \Mysite\environments\prod\common\config\params-local.php установлено: 'frontendHostInfo' => 'http://Mysite.ru',
    'backendHostInfo' => 'http://cp.Mysite.ru',
  2. В файле \Mysite\frontend\config\main.php установлено:
'id' => 'app-frontend',
'name' => 'Mysite.ru',
'homeUrl' => '/',
'basePath' => dirname(__DIR__),
  1. В файле \Mysite\frontend\config\urlManager.php установлено:

'hostInfo' => $params['frontendHostInfo'],

  1. В файле \Mysite\backend\config\main.php установлено:

'id' => 'admin-cp', 'name' => 'Контрольная панель', 'basePath' => dirname(DIR),

  1. В файле \Mysite\frontend\config\urlManager.php установлено:

'hostInfo' => $params['backendHostInfo'],

Что-то я запутался, не могу понять что еще надо задать на виртуальной машине, чтобы при вводе в адресной строке браузера "Mysite.ru" отображался сайт.Может надо инициализировать проект с помощью composer ? Но с какими параметрами ? Подскажите, пожалуйста. Очень надеюсь на помощь.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,874 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 46,126 Reputation points Microsoft Employee
    2019-12-23T14:54:54.86+00:00

    We cannot completely understand your question as this is an English global support. It would be helpful, if you can translate your question in English.Or you can consider support in other languages from here: https://azure.microsoft.com/support/options/

    Refer the FAQ here: For which languages does Microsoft provide support?
    After translating your question, this is what I understood: How to set a domain path in an Azure virtual machine

    This article will help you in Create a fully qualified domain name in the Azure portal for a Windows VM

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.