MiniCodeMonkey / Vagrant-LAMP-Stack

A dead-simple LAMP stack without any bells and whistles for your basic Linux/Apache/MySQL/PHP install.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

403 Forbidden - Missing "Require all granted" in virtualhost for Apache > 2.4

kursusHC opened this issue · comments

Hi,

Thank you for sharing it helped me a lot. I'm testing the project on a Ubuntu 14.04 and the web_app.conf.erb misses a "Require all granted", else the vhost displays a 403 Forbidden.

  <Directory <%= @params[:docroot] %>>
    EnableSendfile Off
    Options FollowSymLinks
    AllowOverride <%= [@params[:allow_override] || "All" ].flatten.join " " %>
    Require all granted
    Order allow,deny
    Allow from all
  </Directory>