E
E
Error 5022018-10-08 20:16:50
Apache HTTP Server
Error 502, 2018-10-08 20:16:50

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>

Test site. What did I do wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-10-08
@NullByte

try Listen 11081 option in global config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question