~ubuntu-branches/ubuntu/gutsy/lurker/gutsy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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
  Order allow,deny
  Allow from all
  
  AddType text/xml .xsl
  AddType text/xml .xml
  AddType message/rfc822 .rfc822  
  AddDefaultCharset UTF-8
  
  # invoke lurker if the requested file does not exist
  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}]
</Directory>