Vagrant 403 Forbidden

前端 未结 4 2258
一整个雨季
一整个雨季 2021-02-14 06:17

I\'ve been running Vagrant successfully for about a week. Last night I ran vagrant reload and now I can no longer access my sites.

  • VirtualBox version 4.2.16
4条回答
  •  无人共我
    2021-02-14 06:41

    I had the same problem when changing the DocumentRoot.

    Since you've changed your DocumentRoot to "/any/path/foo/bar", make sure you have the permissions set on "apache2.conf" for this path.

    Search for:

    
    

    in apache2.conf

    And add a new block like this:

    
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    
    

    And my guess is that everything is gonna be fine!

提交回复
热议问题