D
D
Dmitry2017-07-15 10:55:18
Apache HTTP Server
Dmitry, 2017-07-15 10:55:18

The virtual host does not rise, what's the problem?

Good afternoon, virtual host does not rise.
Onboard Ubuntu 16.04 LTS.
From the packages, apahe2 php7.0 php7.0-fpm php7.0-fastcgi mysql-server-5.7 mysql-client-5.7 was installed.
config file

<VirtualHost *:80>
    ServerName test.host
    ServerAlias www.test.host
    ServerAdmin [email protected]
    DocumentRoot /var/www/test.host
    ErrorLog ${APACHE_LOG_DIR}/th_error.log
    CustomLog ${APACHE_LOG_DIR}/th_access.log combined
    ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/run/php/php7.0-fpm.sock|fcgi://localhost/var/www/test.host
</VirtualHost>

On the path /var/www/tets.host is index.php .
After creating the config, I added it to sites-enabled with the a2ensite test.host command, everything went without errors
. I restarted Apache, also without errors.
previously corrected /etc/hosts , added to the line I
127.0.0.1 localhost test.host
launch the page in the browser, and it throws out a DNS error
This page is not available
DNS_PROBE_FINISHED_NO_INTERNET
What is the problem
? fixed ip

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ksean, 2017-07-15
@AlphaKeloid

127.0.01 => 127.0.0.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question