]> git.pld-linux.org Git - packages/cowiki.git/commitdiff
- merge from DEVEL
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 17 Mar 2006 01:31:00 +0000 (01:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cowiki-FHS.patch -> 1.2
    cowiki-config.patch -> 1.2
    cowiki.conf -> 1.2

cowiki-FHS.patch
cowiki-config.patch [new file with mode: 0644]
cowiki.conf [new file with mode: 0644]

index 9b274d7ece6c00582e699f125aee7d7114439a77..4169c8e82da47b258ce52f3e653e4a4e39553bc4 100644 (file)
@@ -5,7 +5,7 @@
  
          try {
 -            $sPath = realpath(getDirName(__FILE__).'../..') . '/core.conf';
-+            $sPath = '/etc/cowiki/core.conf';
++            $sPath = '/etc/webapps/cowiki/core.conf';
  
              $Conf = new Config();
              $aConf = $Conf->getIniConfigAsArray($sPath);
diff --git a/cowiki-config.patch b/cowiki-config.patch
new file mode 100644 (file)
index 0000000..60fd974
--- /dev/null
@@ -0,0 +1,62 @@
+--- core.conf-dist     2005-09-12 23:32:39.000000000 +0300
++++ ./includes/cowiki/core.conf-dist   2005-11-07 20:36:01.000000000 +0200
+@@ -80,7 +80,7 @@
+     ; coWiki check for a new version? Valid values are values that can
+     ; be passed to the <http://www.php.net/strtotime> function. To disable
+     ; the check, enter -1 here.
+-    CHECK_INTERVAL = "2 weeks"
++    CHECK_INTERVAL = "-1"
+     ; DO NOT change this URI if not stated otherwise on the official
+     ; mailing list with a digitally signed email from the developers!
+@@ -103,7 +103,7 @@
+     ; will kick your ass to the moon in that case! The programmers of coWiki
+     ; ARE NOT your contact persons for your troubles with your admin or ISP!
+     ; Take care and be warned!
+-    RETURN_PATH = "your.bounce.email@example.com"
++    RETURN_PATH = "postmaster@localhost"
+     ; You have to be prepared to meet hostile and malicious guys, who are
+     ; going to receive emails from coWiki and complain then, even if they
+@@ -115,7 +115,7 @@
+     ; admin if you do not know what mail abusing is and how to act in these
+     ; cases. Abuse is very serious problem, you will have to take action
+     ; when you or your coWiki are affected.
+-    ABUSE_PATH = "your.abuse.email@example.com"
++    ABUSE_PATH = "abuse@localhost"
+ ; -------------------------------------------------------------------------
+@@ -174,7 +174,7 @@
+     ; - Blowfish encryption with a sixteen character salt starting with $2$
+     ; You may generate the crypted password with the "crypt" or "htpasswd"
+     ; commands or let it generate through http://your.cowiki/crypt.php
+-    ROOT_PASSWD = ""
++    ROOT_PASSWD = "XXX"
+     ; Grant root access to *all* users, disables/overrides all access
+     ; checks. WARNING: Any user will become *root* and will be able to
+@@ -216,7 +216,7 @@
+     ; Directory for temporary data. It MUST NOT be accessible by an user
+     ; agent, must be readable and writable for httpd or the PHP-uid.
+-    TEMP = "/tmp/"
++    TEMP = "/var/cache/cowiki/"
+     ; Your binaries directory. It MUST NOT be accessible by an user agent,
+     ; must be readable and writable for httpd or the PHP-uid. Skip this
+@@ -273,7 +273,7 @@
+     ; Enable resolving of the reverse DNS name of a remote address (IP).
+     ; Lookups may/will cause delays, turn it "off" if you encounter
+     ; speed problems with your DNS.
+-    LOOKUP_DNS = "on"
++    LOOKUP_DNS = off
+     ; Access mode bits umask. As this is a collaboration tool the umask
+     ; is set to "002" by default. If you are going to use this software
+@@ -376,3 +376,5 @@
+     ; Parameters for the referrer plugin
+     REFERRER_ENABLE = "on"
++
++; vim: ft=dosini
diff --git a/cowiki.conf b/cowiki.conf
new file mode 100644 (file)
index 0000000..5d22d27
--- /dev/null
@@ -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
This page took 0.092537 seconds and 4 git commands to generate.