M
M
Messi2018-02-03 16:48:10
Apache HTTP Server
Messi, 2018-02-03 16:48:10

Why doesn't the site open locally?

Installed a clean Ubuntu 16.04, installed LAMP, added my.domain.local to the hosts file 127.0.0.1
Added my.domain.loca.conf to apache2

<VirtualHost *:80>
        ServerName  my.domain.local
        DocumentRoot /var/www/my/backend/web
        <Directory /var/www/my/backend/web>
            RewriteEngine on
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php
            Options Indexes FollowSymLinks MultiViews
   AllowOverride None
   Order allow,deny
   allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

In FireFox, the site works, but in chrome, at first there was a certificate error, I turned it on in apache ssl, to sense 0.
Constantly ERR_CONNECTION_REFUSED Unable to access the site
Why is that?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question