### THIS FILE IS MANAGED BY PUPPET. ANY MANUAL CHANGES WILL GET OVERWRITTEN.

# Apache2 Trac configuration, specific to a particular project.

WSGIScriptAlias /<%= @projectname %> /var/lib/projects/<%= @projectname %>/wsgi/<%= @projectname %>.wsgi

<Directory /var/lib/projects/<%= @projectname %>/wsgi>
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
</Directory>

<LocationMatch ^/<%= @projectname %>/login$>
   AuthType Basic
   AuthName "Login to <%= @projectname %> Trac wiki/tracker"
   Order Allow,Deny
   Allow from All

   # Here we setup Apache2 authentication
<% @apache2_auth_lines.each do |line| -%>
   <%= line %>
<% end -%>

   Require valid-user
</LocationMatch>

### THIS FILE IS MANAGED BY PUPPET. ANY MANUAL CHANGES WILL GET OVERWRITTEN.

# Apache2 Trac configuration, specific to a particular project.

WSGIScriptAlias /<%= @projectname %> /var/lib/projects/<%= @projectname %>/wsgi/<%= @projectname %>.wsgi

<Directory /var/lib/projects/<%= @projectname %>/wsgi>
    WSGIApplicationGroup %{GLOBAL}
    Require all granted
</Directory>

<LocationMatch ^/<%= @projectname %>/login$>
   AuthType Basic
   AuthName "Login to <%= @projectname %> Trac wiki/tracker"

   # Here we setup Apache2 authentication
<% @apache2_auth_lines.each do |line| -%>
   <%= line %>
<% end -%>

   Require all granted
   Require valid-user
</LocationMatch>

Upgrade deprecated Apache2 authentication settings
Upgrade deprecated Apache2 authentication settings

Signed-off-by: Samuli Seppänen <be49b59234361de284476e9a2215fb6477f46673@openvpn.net>
