/_sitemap.rss for COCANWIKI.
[cocanwiki.git] / conf / cocanwiki.conf
index 6cad2c5..578e854 100644 (file)
@@ -1,5 +1,5 @@
 # Apache configuration for COCANWIKI.
-# $Id: cocanwiki.conf,v 1.7 2004/09/23 15:16:20 rich Exp $
+# $Id: cocanwiki.conf,v 1.24 2006/09/22 10:50:37 rich Exp $
 
 # Uncomment the following lines if necessary.  You will probably need
 # to adjust the paths to reflect where cocanwiki is really installed.
   # The admin subdirectory contains sensitive scripts, and should
   # be protected by ACLs and/or passwords.  This is just an example:
   Deny from all
-  Allow from 10.0.0.249
+  Allow from 127.0.0.1 192.168.2.249
 </Location>
 
 <Location /_graphics>
   ExpiresActive On
-  ExpiresDefault "now plus 1 hour"
+  ExpiresDefault "now plus 24 hours"
 </Location>
 
 <Location /_js>
   ExpiresActive On
-  ExpiresDefault "now plus 1 hour"
+  ExpiresDefault "now plus 24 hours"
 </Location>
 
 <Location /_css>
   ExpiresActive On
-  ExpiresDefault "now plus 1 hour"
+  ExpiresDefault "now plus 24 hours"
 </Location>
 
 <Location /_static>
   ExpiresActive On
-  ExpiresDefault "now plus 1 hour"
+  ExpiresDefault "now plus 24 hours"
 </Location>
 
+# Error documents.
+ErrorDocument 500 /_bin/crash.cmo
+
+# Start of the rewrite rules.
+
 RewriteEngine on
 
-# The robots.txt file needs special treatment.
+# The favicon.ico and robots.txt files need special treatment.
+RewriteRule ^/favicon.ico /favicon.ico [PT,L]
 RewriteRule ^/robots.txt /robots.txt [PT,L]
 
 # Global scripts.
 RewriteRule ^/_admin$ /_bin/admin/admin.cmo [PT,L,QSA]
 RewriteRule ^/_contact$ /_bin/contact.cmo [PT,L,QSA]
+RewriteRule ^/_email_change$ /_bin/email_change.cmo [PT,L,QSA]
 RewriteRule ^/_files$ /_bin/files.cmo [PT,L,QSA]
 RewriteRule ^/_global.css$ /_bin/hoststyle.cmo [PT,L,QSA]
 RewriteRule ^/_images$ /_bin/images.cmo [PT,L,QSA]
-RewriteRule ^/_login$ /_bin/login_form.cmo [PT,L]
+RewriteRule ^/_invite$ /_bin/invite_user_confirm_form.cmo [PT,L,QSA]
+RewriteRule ^/_links$ /_bin/links.cmo [PT,L,QSA]
+RewriteRule ^/_login$ /_bin/login_form.cmo [PT,L,QSA]
 RewriteRule ^/_logout$ /_bin/logout.cmo [PT,L,QSA]
+RewriteRule ^/_mailing_list.csv$ /_bin/mailing_list_view.cmo?csv=1 [PT,L]
+RewriteRule ^/_ml_confirm$ /_bin/mailing_list_confirm.cmo [PT,L,QSA]
+RewriteRule ^/_ml_unsub$ /_bin/mailing_list_unsubscribe.cmo [PT,L,QSA]
+RewriteRule ^/_pe_confirm$ /_bin/page_email_confirm.cmo [PT,L,QSA]
+RewriteRule ^/_pe_unsub$ /_bin/page_email_unsubscribe.cmo [PT,L,QSA]
 RewriteRule ^/_recent$ /_bin/recent.cmo [PT,L,QSA]
+RewriteRule ^/_recent.rss$ /_bin/recent_rss.cmo [PT,L,QSA]
+RewriteRule ^/_search$ /_bin/search.cmo [PT,L,QSA]
 RewriteRule ^/_sitemap$ /_bin/sitemap.cmo [PT,L,QSA]
+RewriteRule ^/_sitemap.rss$ /_bin/sitemap_rss.cmo [PT,L,QSA]
+RewriteRule ^/sitemap.xml$ /_bin/sitemap_xml.cmo [PT,L,QSA]
+RewriteRule ^/_userprefs$ /_bin/user_prefs_form.cmo [PT,L,QSA]
 RewriteRule ^/_users$ /_bin/users.cmo [PT,L,QSA]
 
 # Image and file downloads.
@@ -70,7 +89,11 @@ RewriteRule ^/([^_].*)/diff$ /_bin/diff.cmo?page=$1 [PT,L,QSA]
 RewriteRule ^/([^_].*)/edit$ /_bin/edit.cmo?page=$1 [PT,L,QSA]
 RewriteRule ^/([^_].*)/editcss$ /_bin/edit_page_css_form.cmo?page=$1 [PT,L,QSA]
 RewriteRule ^/([^_].*)/history$ /_bin/history.cmo?page=$1 [PT,L,QSA]
-RewriteRule ^/([^_].*)/index.rss$ /_bin/rss.cmo?page=$1 [PT,L,QSA]
+RewriteRule ^/([^_].*)/history.rss$ /_bin/history_rss.cmo?page=$1 [PT,L,QSA]
+RewriteRule ^/([^_].*)/index.rss$ /_bin/page_rss.cmo?page=$1 [PT,L,QSA]
+RewriteRule ^/([^_].*)/links$ /_bin/links.cmo?page=$1 [PT,L,QSA]
+RewriteRule ^/([^_].*)/rename$ /_bin/rename_page_form.cmo?page=$1 [PT,L,QSA]
+RewriteRule ^/([^_].*)/source$ /_bin/source.cmo?page=$1 [PT,L,QSA]
 RewriteRule ^/([^_].*)/stats$ /_bin/stats.cmo?page=$1 [PT,L,QSA]
 RewriteRule ^/([^_].*)/styles.css$ /_bin/pagestyle.cmo?page=$1 [PT,L,QSA]