Skip to content

Commit

Permalink
Fixed rendering of Apache config snippet in ru guide [skip ci] (#19080)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Dec 15, 2021
1 parent 0c79f1b commit 36ef753
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide-ru/test-environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Changed current directory to <directory>
### Настройка веб-сервера Apache

Если вы используете Apache и настроили его как описано в разделе «[Установка Yii](start-installation.md)», то для тестов вам необходимо создать отдельный виртуальный хост который будет работать с той же папкой, но использовать входной скрипт `index-test.php`:

```
<VirtualHost *:80>
DocumentRoot "path/to/basic/web"
Expand All @@ -67,5 +68,6 @@ Changed current directory to <directory>
</Directory>
</VirtualHost>
```

Так мы укажем веб серверу перенаправлять все запросы на скрипт `index-test.php`.
> Note: Обратите внимание, что здесь мы указываем параметр `DirectoryIndex`, помимо тех параметров, которые были указаны для первого хоста. Это сделано с той целью, чтобы при обращении к главной странице по адресу `mysite-test` также использовался бы скрипт `index-test.php`.

0 comments on commit 36ef753

Please sign in to comment.