Trouble with Vagrant - “404 - Not Found”

前端 未结 5 1140
逝去的感伤
逝去的感伤 2021-02-09 10:47

I am attempting to make a LAMP box using Vagrant. I have been told that it is quite simple to use. I am completely new to networks and virtual machines and have very little expe

5条回答
  •  忘了有多久
    2021-02-09 11:16

    I had same problem. I tried to restart apache from the vagrant box, I got following warning on my terminal.

    vagrant@vagrant-ubuntu-trusty-64:~$ sudo service apache2 restart
     * Restarting web server apache2   
    
    AH00112: Warning: DocumentRoot [/var/www/html] does not exist
    AH00558: apache2: Could not reliably determine the server's fully qualified 
    domain name, using 10.0.2.15. Set the 'ServerName' directive globally to suppress this message
    

    Create a DocumentRoot to fix the 404 issue by creating a directory called /var/www/html

提交回复
热议问题