Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhost directories fix #434

Merged
merged 2 commits into from
Nov 5, 2013
Merged

vhost directories fix #434

merged 2 commits into from
Nov 5, 2013

Conversation

kgeis
Copy link
Contributor

@kgeis kgeis commented Nov 4, 2013

According to Apache docs http://httpd.apache.org/docs/current/mod/core.html#allowoverride

AllowOverride is valid only in <Directory> sections specified without regular expressions, not in <Location>, <DirectoryMatch> or <Files> sections.

This was causing a warning when I started Apache.

…e.html#allowoverride "AllowOverride is valid only in <Directory> sections specified without regular expressions, not in <Location>, <DirectoryMatch> or <Files> sections."
@@ -15,10 +15,12 @@
<%- if directory['options'] -%>
Options <%= Array(directory['options']).join(' ') %>
<%- end -%>
<%- if directory['allow_override'] -%>
<%- if directory['provider'] == 'Directory' %>
<%- if directory['allow_override'] -%>
AllowOverride <%= Array(directory['allow_override']).join(' ') %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now you're checking for directory, but you're not checking if the path-spec begins with ~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized that. One step at a time. The patch I provided resolves my issue.

On Nov 4, 2013, at 11:37 PM, Igor Galić notifications@github.com wrote:

In templates/vhost/_directories.erb:

@@ -15,10 +15,12 @@
<%- if directory['options'] -%>
Options <%= Array(directory['options']).join(' ') %>
<%- end -%>

  • <%- if directory['allow_override'] -%>
  • <%- if directory['provider'] == 'Directory' %>
  •  <%- if directory['allow_override'] -%>
    
    AllowOverride <%= Array(directory['allow_override']).join(' ') %>
    now you're checking for directory, but you're not checking if the path-spec begins with ~


Reply to this email directly or view it on GitHub.

igalic added a commit that referenced this pull request Nov 5, 2013
AllowOverride only allowed in Directory
@igalic igalic merged commit 9e003de into puppetlabs:master Nov 5, 2013
traylenator pushed a commit to traylenator/puppetlabs-apache that referenced this pull request Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants