Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #45 from legal90/fix-http-auth
Browse files Browse the repository at this point in the history
Fixed HTTP authentication
  • Loading branch information
bflad committed Jan 23, 2015
2 parents f691198 + 95f5c27 commit b044f22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions recipes/apache2.rb
Expand Up @@ -6,4 +6,9 @@
include_recipe 'apache2::mod_proxy_http'
include_recipe 'apache2::mod_ssl'

# Disable mod_auth_basic because it isn't supported in Stash 2.10 and later
apache_module "auth_basic" do
enable false
end

web_app node['stash']['apache2']['virtual_host_name']
8 changes: 1 addition & 7 deletions templates/default/web_app.conf.erb
Expand Up @@ -13,14 +13,11 @@
<% end -%>
<% end -%>
DocumentRoot <%= node['stash']['install_path'] %>

CustomLog <%= node['stash']['apache2']['access_log'].empty? ? node['apache']['log_dir']+"/stash-access.log" : node['stash']['apache2']['access_log'] %> combined
ErrorLog <%= node['stash']['apache2']['error_log'].empty? ? node['apache']['log_dir']+"/stash-error.log" : node['stash']['apache2']['error_log'] %>
LogLevel warn

# Make sure we disable/prevent basic authentication attempts since Stash 2.1+ can't handle them
RequestHeader unset Authorization

<Proxy *>
<% if node['apache'] && node['apache']['version'] == '2.4' %>
Require all granted
Expand Down Expand Up @@ -49,9 +46,6 @@
ErrorLog <%= node['stash']['apache2']['ssl']['error_log'].empty? ? node['apache']['log_dir']+"/stash-ssl-error.log" : node['stash']['apache2']['ssl']['error_log'] %>
LogLevel warn

# Make sure we disable/prevent basic authentication attempts since Stash 2.1+ can't handle them
RequestHeader unset Authorization

<Proxy *>
<% if node['apache'] && node['apache']['version'] == '2.4' %>
Require all granted
Expand Down

0 comments on commit b044f22

Please sign in to comment.