SOURCES (DEVEL): cowiki.conf (NEW) - move config into separate fil...

glen glen at pld-linux.org
Mon Nov 7 19:39:56 CET 2005


Author: glen                         Date: Mon Nov  7 18:39:56 2005 GMT
Module: SOURCES                       Tag: DEVEL
---- Log message:
- move config into separate file instead of producing one from .spec

---- Files affected:
SOURCES:
   cowiki.conf (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/cowiki.conf
diff -u /dev/null SOURCES/cowiki.conf:1.1.2.1
--- /dev/null	Mon Nov  7 19:39:56 2005
+++ SOURCES/cowiki.conf	Mon Nov  7 19:39:51 2005
@@ -0,0 +1,49 @@
+# $Id$
+
+<Directory /usr/share/cowiki/htdocs>
+    Allow from all
+</Directory>
+
+<VirtualHost *:80>
+	ServerName cowiki
+	DocumentRoot /usr/share/cowiki/htdocs
+
+# --- BEGIN: httpd configuration for coWiki -------------------------------
+
+#
+# Values for PHP. If you are running PHP as CGI, set the values embeded
+# in <IfModule mod_php...> directly in your php.ini configuration file.
+#
+<IfModule mod_php5.c>
+  php_value session.auto_start 0
+  php_value session.use_trans_sid 0
+</IfModule>
+
+#
+# URL-Rewriting for coWiki. If you do not want to use this feature
+# simply set the COWIKI_URL_REWRITE variable to "Off" and comment out
+# the RewriteRule in the following line. Do not forget to delete all cache
+# files (usually in /tmp/) *before* you re-request a coWiki script! Cached
+# files will still contain rewritten links. This is also true for your
+# session data, hence you must erase all session data manually.
+#
+<IfModule mod_rewrite.c>
+  RewriteEngine On
+
+  <IfModule mod_env.c>
+    SetEnv COWIKI_URL_REWRITE On
+    RewriteRule ^([0-9]+)\.html$ index.php?node=$1&%{QUERY_STRING}
+    RewriteRule ^([0-9]+)\.([0-9]+)\.html$ index.php?node=$1&comid=$2%{QUERY_STRING}
+  </IfModule>
+  
+  #
+  # Handle WikiWord URLs
+  #
+  RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1&docname=$2&%{QUERY_STRING}
+  RewriteRule ^([A-Z0-9]+[A-Za-z0-9]*)/*$ index.php?webname=$1&%{QUERY_STRING}    
+</IfModule>
+
+# --- END: httpd configuration for coWiki ---------------------------------
+</VirtualHost>
+
+# vim: filetype=apache ts=4 sw=4 et
================================================================



More information about the pld-cvs-commit mailing list