W
W
WebDev2015-10-11 15:47:53
Apache HTTP Server
WebDev, 2015-10-11 15:47:53

Apache not working on vagrant?

Hello, I installed a vagrant for myself, downloaded the assembly from PuPHPet, in which there is only PHP, I want to install everything else myself to fill my hand. Launched, connected via ssh, downloaded apache. Created a configuration file in /etc/apache2/sites-available indicated in it

<VirtualHost *:80>
    ServerName test.local
    DocumentRoot /var/www/test
    <Directory /var/www/test>
        AllowOverride All
    </Directory>
</VirtualHost>

I connected this file through a2ensite, restarted Apache, but I can't open the site in the browser. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-10-11
@kirill-93

But I can't open the site in the browser. What am I doing wrong?
In the browser, you need to open virtual machines by IP.
Or on the host, register the domain in /etc/hosts (bad decision).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question