{"action":"created","issue":{"url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/108","labels_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/108/comments","events_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/108/events","html_url":"https://github.com/jeff1evesque/drupal-demonstration/issues/108","id":81887508,"number":108,"title":"Allow '.htaccess' by modifying 'httpd.conf'","user":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-28T11:27:36Z","updated_at":"2015-06-02T10:13:50Z","closed_at":null,"body":"We will search between two directive patterns in `/etc/httpd/conf/httpd.conf`, for `AllowOverride None`, and replace each instance with `AllowOverride All` : \r\n\r\n- `<Directory />`\r\n- `<Directory \"/vagrant\" >`"},"comment":{"url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/comments/107906815","html_url":"https://github.com/jeff1evesque/drupal-demonstration/issues/108#issuecomment-107906815","issue_url":"https://api.github.com/repos/jeff1evesque/drupal-demonstration/issues/108","id":107906815,"user":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T10:13:50Z","updated_at":"2015-06-02T10:13:50Z","body":"We can try some variation of the following:\r\n\r\n```puppet\r\n...\r\n## allow htaccess (part 2): implement double backslash '\\\\' for literal escape\r\nexec {'allow-htaccess-2':\r\n    command => \"awk '/^(<Directory[^>]*\"\\/vagrant\"[^>]*>|<\\\\/Directory>)/{f=f?0:1}f&&/AllowOverride None/{\\$0=\\\"    AllowOverride All\\\"}1' /etc/httpd/conf/httpd.conf > /vagrant/httpd.conf.tmp\",\r\n    refreshonly => true,\r\n    notify => Exec['adjust-httpd-conf-2'],\r\n}\r\n...\r\n```\r\n\r\n**Note:** the above implementation will need to be properly escaped."}}