Answer the question
In order to leave comments, you need to log in
What is the error of creating a virtual host on ubuntu?
In order, I do the following:
1) Create the yiiblog folder in the /www directory
2) Create the yiiblog.ru.conf file in /sites-available with the following content:
<VirtualHost *:80>
ServerName yiiblog
DirectoryIndex index.php
DocumentRoot /var/www/yiiblog/web/
<Directory /var/www/yiiblog/web/>
Options +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/yiiblog/runtime/logyii2-app/runtime/logs/apache-error.log
CustomLog /var/www/yiiblog/runtime/logs/apache-access.log combined
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question