Vagrant 403 Forbidden

前端 未结 4 2322
一整个雨季
一整个雨季 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条回答
  •  萌比男神i
    2021-02-14 06:49

    My hunch is that this is not a vagrant issue at all but solely an Apache configuration glitch. There are a few things I can think to check.

    First, obviously, is to confirm that the user that apache is running under has read and execute permissions for the DocumentRoot folder.

    Since you mentioned Apache 2.4, there have been changes in the configs from 2.2. Make sure your Allow from all statements now read Require all granted. (If you were still on 2.2, you'd want to make sure they said Allow from all instead of Deny from all.) In either case, you can set this in each individually, or set a default in your block of the main httpd.conf file.

    Getting more obscure, you could check for selinux, although I'm pretty sure this isn't present in Ubuntu by default. (It is in CentOS, for example.)

提交回复
热议问题