We help IT Professionals succeed at work.
Get Started

Vagrant/Puphpet Apache Allow Override

SheppardDigital
on
503 Views
Last Modified: 2015-03-12
Hi,

I've started looking at Vagrant and today I've created a vagrant box using a config I've put together using puphpet.

The box seems to work fine, however for some reason .htaccess files were not working. I checked the config and Allow Override was set to All for the vhost that I'd setup, but in httpd.conf it was set to none. Once I changed this to All, the .htaccess file started working.

My question is, in the yaml.conf file is there anyway to set the apache default to Allow Override On?

Here's the relevant section of my yaml.conf file;

apache:
    install: '1'
    settings:
        user: www-data
        group: www-data
        default_vhost: true
        manage_user: false
        manage_group: false
        sendfile: 0
    modules:
        - rewrite
    vhosts:
        gj0yau9eukqc:
            servername: admin-interface.dev
            serveraliases:
                - admin-interface.dev
            docroot: /var/www/html/admin-interface
            port: '80'
            directories:
                awjrohbhebqy:
                    provider: directory
                    path: ''
                    options:
                        - Indexes
                        - FollowSymlinks
                        - MultiViews
                    allow_override:
                        - All
                    require:
                        - all
                        - granted
                    custom_fragment: ''
            engine: php
            custom_fragment: ''
            ssl_cert: ''
            ssl_key: ''
            ssl_chain: ''
            ssl_certs_dir: ''
    mod_pagespeed: 0

Open in new window


I think I somehow need to set the Allow Override All in the apache > settings section as well as in the vhost section.

Is this possible? or would i have to manually need to edit the httpd.conf file to set this?
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE