]> git.pld-linux.org Git - packages/cowiki.git/blame - cowiki.conf
- tabs in preamble
[packages/cowiki.git] / cowiki.conf
CommitLineData
cadfdb6e
ER
1# $Id$
2
3<Directory /usr/share/cowiki/htdocs>
4 Allow from all
b9268ce7
ER
5
6 #
7 # Values for PHP. If you are running PHP as CGI, set the values embeded
8 # in <IfModule mod_php...> directly in your php.ini configuration file.
9 #
10 <IfModule mod_php5.c>
11 php_value session.auto_start 0
12 php_value session.use_trans_sid 0
13 </IfModule>
14
15 #
16 # URL-Rewriting for coWiki. If you do not want to use this feature
17 # simply set the COWIKI_URL_REWRITE variable to "Off" and comment out
18 # the RewriteRule in the following line. Do not forget to delete all cache
19 # files (usually in /tmp/) *before* you re-request a coWiki script! Cached
20 # files will still contain rewritten links. This is also true for your
21 # session data, hence you must erase all session data manually.
22 #
23 <IfModule mod_rewrite.c>
24 RewriteEngine On
25
26 <IfModule mod_env.c>
27 SetEnv COWIKI_URL_REWRITE On
28 RewriteRule ^([0-9]+)\.html$ index.php?node=$1&%{QUERY_STRING}
29 RewriteRule ^([0-9]+)\.([0-9]+)\.html$ index.php?node=$1&comid=$2%{QUERY_STRING}
30 </IfModule>
31
32 #
33 # Handle WikiWord URLs
34 #
35 RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1&docname=$2&%{QUERY_STRING}
36 RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1&%{QUERY_STRING}
37 </IfModule>
38
cadfdb6e
ER
39</Directory>
40
41<VirtualHost *:80>
42 ServerName cowiki
43 DocumentRoot /usr/share/cowiki/htdocs
cadfdb6e 44</VirtualHost>
This page took 0.068356 seconds and 4 git commands to generate.