Vagrant 403 Forbidden

前端 未结 4 2249
一整个雨季
一整个雨季 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:36

    cd /etc/apache2/sites-available
    for file in `ls *`; do sed 's/\(.*<\/Directory.*>\)/Require\ all\ granted\n\1/' $file > $file.new;mv $file.new $file ; done;
    

    because it worked before, I would not waste time on fix file by file

提交回复
热议问题