Skip to main content
summaryrefslogtreecommitdiffstats
blob: ead7715711b44a741a8f705f2b1e32b58ba8d09f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ScriptAlias /<%= envid %> <%= base %>/bin/trac-<%= version %>.cgi
ScriptAlias /<%= envid %> <%= envbase %>/trac-<%= version %>.fcgi
Alias /<%= envid %>-htdocs <%= prefix %>/htdocs/

<Location /<%= envid %>>
  SetEnv PYTHON_EGG_CACHE /tmp/eggs
  SetEnv TRAC_ENV <%= env %>
  Order allow,deny
  Allow from all

<% if @allbasicauth %>
  AuthType Basic
  AuthName "Trac Test Project"
  AuthUserFile <%= envbase %>/htpasswd
  Require valid-user
<% end %>  
</Location>

<% if @allbasicauth == false %>
<% if @accountmanagerplugin == "" %>
<Location /<%= envid %>/login>
<% if @certauth %>
  SSLOptions +FakeBasicAuth
  SSLVerifyClient require
  SSLVerifyDepth  1
<% end %>

<% if @digestauth %>
  AuthType Digest
  AuthName "Trac Test Project"
  AuthUserFile <%= envbase %>/htpasswd.digest
  Require valid-user
<% end %>

<% if @digestauth == false %>
  AuthType Basic
  AuthName "Trac Test Project"
  AuthUserFile <%= envbase %>/htpasswd
  Require valid-user
<% end %>
</Location>
<% end %>
<% end %>

<Directory <%= prefix %>/htdocs/>
  Options Indexes MultiViews +FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

Back to the top