~ubuntu-branches/ubuntu/vivid/lurker/vivid

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
# Sample configuration for apache with lurker
# Install as @DEFAULT_CONFIG_DIR@/apache.conf
# Then 'include' it in your apache configuration

ScriptAlias /cgi-lurker @CGI_BIN_DIR@
Alias /lurker @DEFAULT_WWW_DIR@

<Directory @DEFAULT_WWW_DIR@>
  # set access control here
  <IfVersion >= 2.3>
    Require all granted
  </IfVersion>
  <IfVersion < 2.3>
    Order allow,deny
    Allow from all
  </IfVersion>
  
  AddType text/xml .xsl
  AddType text/xml .xml
  AddType message/rfc822 .rfc822  
  AddDefaultCharset UTF-8
  
  # invoke lurker if the requested file does not exist
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^(attach|list|mbox|message|mindex|search|splash|thread|zap)/[^/]+$ /cgi-lurker/lurker.cgi [L,PT,E=LURKER_CONFIG:@DEFAULT_CONFIG_DIR@/lurker.conf,E=LURKER_FRONTEND:%{REQUEST_FILENAME}]
  </IfModule>
</Directory>