<VirtualHost *:80>
ServerName api.yii2-app
DirectoryIndex index.php
DocumentRoot /var/www/trainingYii/web/
<Directory /var/www/trainingYii/backend/web/>
Options +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/trainingYii/backend/runtime/logyii2-app/runtime/logs/apache-error.log
CustomLog /var/www/trainingYii/backend/runtime/logs/apache-access.log combined
</VirtualHost>