Answer the question
In order to leave comments, you need to log in
It is not possible to cut the virtual host in Apache2. What could be the reason?
I create a site config in /etc/apache2/sites-available/mysite.conf. Next, I write sudo a2ensite mysite.conf and sudo a2dismod 000-default.conf. He writes, like everything was cut down, restart Apache. I restart via systemctl. The result is zero: the same default site for Apache is running on port 80, and nothing is available on the other (11081). I give the config for the virtual host below.
<VirtualHost *:11081>
ServerAdmin [email protected]
DocumentRoot /home/[юзернейм]/mysite
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName [домен.ком]
ServerAlias [ввв.домен.ком]
</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