Guest User

root

a guest
Apr 9th, 2009
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.99 KB | None | 0 0
  1. <VirtualHost *:443>
  2. DocumentRoot /var/www/shahar-or-tiki
  3. ServerName shahar-or.co.il
  4. CustomLog /var/log/apache2/shahar-or-tiki.log combined
  5. SSLEngine on
  6. SSLProtocol all -SSLv2
  7. SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
  8. SSLCertificateFile /etc/ssl/certs/webmail.shahar-or.co.il.crt
  9. SSLCertificateKeyFile /etc/ssl/private/webmail.shahar-or.co.il.key
  10. SSLCertificateChainFile /etc/ssl/certs/startssl_sub.class1.server.ca.crt
  11. SSLCACertificateFile /etc/ssl/certs/startssl_ca.crt
  12. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  13.  
  14. # These are suggested Rewrite Rules for use with TikiWiki.
  15. # They enhance security and permit short URLS.
  16. #
  17. # To use
  18. # 1- rename _htaccess to .htaccess
  19. # or
  20. # 2- add the content of this file to your httpd.conf
  21. #
  22. # Please find more info here
  23. # http://doc.tikiwiki.org/Rewrite+Rules
  24. #
  25. # This prevents reading of files with certain extensions.
  26. <FilesMatch "\.(bak|inc|lib|sh|tpl|sql)$">
  27. order deny,allow
  28. deny from all
  29. </FilesMatch>
  30.  
  31. <IfModule mod_rewrite.c>
  32. RewriteEngine On
  33.  
  34. # direct one-word access
  35. RewriteRule ^calendar$ tiki-calendar.php [L]
  36. RewriteRule ^articles$ tiki-view_articles.php [L]
  37. RewriteRule ^blogs$ tiki-list_blogs.php [L]
  38. RewriteRule ^categories$ tiki-browse_categories.php [L]
  39. RewriteRule ^charts$ tiki-list_charts.php [L]
  40. RewriteRule ^chat$ tiki-chat.php [L]
  41. RewriteRule ^contact$ tiki-contact.php [L]
  42. RewriteRule ^directories$ tiki-directory_browse.php [L]
  43. RewriteRule ^faqs$ tiki-list_faqs.php [L]
  44. RewriteRule ^files$ tiki-file_galleries.php [L]
  45. RewriteRule ^forums$ tiki-forums.php [L]
  46. RewriteRule ^images$ tiki-galleries.php [L]
  47. RewriteRule ^galleries$ tiki-galleries.php [L]
  48. RewriteRule ^games$ tiki-list_games.php [L]
  49. RewriteRule ^login$ tiki-login.php [L]
  50. RewriteRule ^my$ tiki-my_tiki.php [L]
  51. RewriteRule ^newsletters$ tiki-newsletters.php [L]
  52. RewriteRule ^quizzes$ tiki-list_quizzes.php [L]
  53. RewriteRule ^stats$ tiki-stats.php [L]
  54. RewriteRule ^surveys$ tiki-list_surveys.php [L]
  55. RewriteRule ^trackers$ tiki-list_trackers.php [L]
  56. RewriteRule ^irc$ tiki-irc_logs.php [L]
  57. RewriteRule ^mobile$ tiki-mobile.php [L]
  58. RewriteRule ^wml$ tiki-mobile.php [L]
  59. RewriteRule ^sheets$ tiki-sheets.php [L]
  60. RewriteRule ^workspaces$ tiki-workspaces_admin.php [L]
  61.  
  62. # access any object by its numeric identifier
  63. RewriteRule ^article([0-9]+) tiki-read_article.php?articleId=$1 [QSA,L]
  64. RewriteRule ^art([0-9]+) tiki-read_article.php?articleId=$1 [QSA,L]
  65. RewriteRule ^cat([0-9]+) tiki-browse_categories.php?parentId=$1 [QSA,L]
  66. RewriteRule ^blog([0-9]+) tiki-view_blog.php?blogId=$1 [QSA,L]
  67. RewriteRule ^blogpost([0-9]+) tiki-view_blog_post.php?postId=$1 [QSA,L]
  68. RewriteRule ^chart([0-9]+) tiki-view_chart.php?chartId=$1 [QSA,L]
  69. RewriteRule ^directory([0-9]+) tiki-directory_browse.php?parent=$1 [QSA,L]
  70. RewriteRule ^faq([0-9]+) tiki-view_faq.php?faqId=$1 [QSA,L]
  71. RewriteRule ^file([0-9]+) tiki-list_file_gallery.php?galleryId=$1 [QSA,L]
  72. RewriteRule ^dl([0-9]+) tiki-download_file.php?fileId=$1 [QSA,L]
  73. RewriteRule ^forum([0-9]+) tiki-view_forum.php?forumId=$1 [QSA,L]
  74. RewriteRule ^image([0-9]+) show_image.php?id=$1 [QSA,L]
  75. RewriteRule ^gallery([0-9]+) tiki-browse_gallery.php?galleryId=$1 [QSA,L]
  76. RewriteRule ^newsletter([0-9]+) tiki-newsletters.php?nlId=$1 [QSA,L]
  77. RewriteRule ^quiz([0-9]+) tiki-take_quiz.php?quizId=$1 [QSA,L]
  78. RewriteRule ^survey([0-9]+) tiki-take_survey.php?surveyId=$1 [QSA,L]
  79. RewriteRule ^tracker([0-9]+) tiki-view_tracker.php?trackerId=$1 [QSA,L]
  80. RewriteRule ^wiki-([A-Za-z0-9]+) tiki-index.php?page=$1 [QSA,L]
  81. RewriteRule ^page-([A-Za-z0-9]+) tiki-index.php?page=$1 [QSA,L]
  82. RewriteRule ^irc([0-9]+) tiki-irc_logs.php?focus=$1 [QSA,L]
  83. RewriteRule ^int([0-9]+) tiki-integrator.php?repID=$1 [QSA,L]
  84. RewriteRule ^sheet([0-9]+) tiki-view_sheets.php?sheetId=$1 [QSA,L]
  85. RewriteRule ^ws([0-9]+) tiki-workspaces_desktop.php?workspaceId=$1 [QSA,L]
  86.  
  87. RewriteRule \.(css|gif|jpg|png|php|html|js|htm|shtml|cgi|sql|phtml|txt|ihtml) - [L]
  88.  
  89. # todo add support for all characters allowed in a Wiki name
  90. # make sure this is the last rule!
  91. RewriteRule ^show:(~?)([-_\+A-Za-z0-9]+)$ tiki-slideshow.php?page=$1$2 [QSA,L]
  92. RewriteRule ^([^/\.]+)$ tiki-index.php?page=$1 [QSA,L]
  93.  
  94. # how to redierct to a wiki page on a not found error: take away the comment + adapt the pagename
  95. # ErrorDocument 404 tiki-index.php?page=Page+not+found
  96.  
  97. </IfModule>
  98. # End of rewrite rules
  99. </VirtualHost>
  100.  
  101. <VirtualHost *:80>
  102. DocumentRoot /var/www/shahar-or-tiki
  103. ServerName shahar-or.co.il
  104. ServerAlias www.shahar-or.co.il
  105. ServerAlias shachar-or.co.il
  106. ServerAlias www.shacharor.co.il
  107. CustomLog /var/log/apache2/shahar-or-tiki.log combined
  108. <IfModule mod_alia.so>
  109. RedirectMatch .*\.shahar-or\.co\.il/(.*) http://shahar-or.co.il/$1
  110. RedirectMatch .*\.shacharor\.co\.il/(.*) http://shahar-or.co.il/$1
  111. </IfModule>
  112. # These are suggested Rewrite Rules for use with TikiWiki.
  113. # They enhance security and permit short URLS.
  114. #
  115. # To use
  116. # 1- rename _htaccess to .htaccess
  117. # or
  118. # 2- add the content of this file to your httpd.conf
  119. #
  120. # Please find more info here
  121. # http://doc.tikiwiki.org/Rewrite+Rules
  122. #
  123. # This prevents reading of files with certain extensions.
  124. <FilesMatch "\.(bak|inc|lib|sh|tpl|sql)$">
  125. order deny,allow
  126. deny from all
  127. </FilesMatch>
  128.  
  129. <IfModule mod_rewrite.c>
  130. RewriteEngine On
  131.  
  132. # direct one-word access
  133. RewriteRule ^calendar$ tiki-calendar.php [L]
  134. RewriteRule ^articles$ tiki-view_articles.php [L]
  135. RewriteRule ^blogs$ tiki-list_blogs.php [L]
  136. RewriteRule ^categories$ tiki-browse_categories.php [L]
  137. RewriteRule ^charts$ tiki-list_charts.php [L]
  138. RewriteRule ^chat$ tiki-chat.php [L]
  139. RewriteRule ^contact$ tiki-contact.php [L]
  140. RewriteRule ^directories$ tiki-directory_browse.php [L]
  141. RewriteRule ^faqs$ tiki-list_faqs.php [L]
  142. RewriteRule ^files$ tiki-file_galleries.php [L]
  143. RewriteRule ^forums$ tiki-forums.php [L]
  144. RewriteRule ^images$ tiki-galleries.php [L]
  145. RewriteRule ^galleries$ tiki-galleries.php [L]
  146. RewriteRule ^games$ tiki-list_games.php [L]
  147. RewriteRule ^login$ tiki-login.php [L]
  148. RewriteRule ^my$ tiki-my_tiki.php [L]
  149. RewriteRule ^newsletters$ tiki-newsletters.php [L]
  150. RewriteRule ^quizzes$ tiki-list_quizzes.php [L]
  151. RewriteRule ^stats$ tiki-stats.php [L]
  152. RewriteRule ^surveys$ tiki-list_surveys.php [L]
  153. RewriteRule ^trackers$ tiki-list_trackers.php [L]
  154. RewriteRule ^irc$ tiki-irc_logs.php [L]
  155. RewriteRule ^mobile$ tiki-mobile.php [L]
  156. RewriteRule ^wml$ tiki-mobile.php [L]
  157. RewriteRule ^sheets$ tiki-sheets.php [L]
  158. RewriteRule ^workspaces$ tiki-workspaces_admin.php [L]
  159.  
  160. # access any object by its numeric identifier
  161. RewriteRule ^article([0-9]+) tiki-read_article.php?articleId=$1 [QSA,L]
  162. RewriteRule ^art([0-9]+) tiki-read_article.php?articleId=$1 [QSA,L]
  163. RewriteRule ^cat([0-9]+) tiki-browse_categories.php?parentId=$1 [QSA,L]
  164. RewriteRule ^blog([0-9]+) tiki-view_blog.php?blogId=$1 [QSA,L]
  165. RewriteRule ^blogpost([0-9]+) tiki-view_blog_post.php?postId=$1 [QSA,L]
  166. RewriteRule ^chart([0-9]+) tiki-view_chart.php?chartId=$1 [QSA,L]
  167. RewriteRule ^directory([0-9]+) tiki-directory_browse.php?parent=$1 [QSA,L]
  168. RewriteRule ^faq([0-9]+) tiki-view_faq.php?faqId=$1 [QSA,L]
  169. RewriteRule ^file([0-9]+) tiki-list_file_gallery.php?galleryId=$1 [QSA,L]
  170. RewriteRule ^dl([0-9]+) tiki-download_file.php?fileId=$1 [QSA,L]
  171. RewriteRule ^forum([0-9]+) tiki-view_forum.php?forumId=$1 [QSA,L]
  172. RewriteRule ^image([0-9]+) show_image.php?id=$1 [QSA,L]
  173. RewriteRule ^gallery([0-9]+) tiki-browse_gallery.php?galleryId=$1 [QSA,L]
  174. RewriteRule ^newsletter([0-9]+) tiki-newsletters.php?nlId=$1 [QSA,L]
  175. RewriteRule ^quiz([0-9]+) tiki-take_quiz.php?quizId=$1 [QSA,L]
  176. RewriteRule ^survey([0-9]+) tiki-take_survey.php?surveyId=$1 [QSA,L]
  177. RewriteRule ^tracker([0-9]+) tiki-view_tracker.php?trackerId=$1 [QSA,L]
  178. RewriteRule ^wiki-([A-Za-z0-9]+) tiki-index.php?page=$1 [QSA,L]
  179. RewriteRule ^page-([A-Za-z0-9]+) tiki-index.php?page=$1 [QSA,L]
  180. RewriteRule ^irc([0-9]+) tiki-irc_logs.php?focus=$1 [QSA,L]
  181. RewriteRule ^int([0-9]+) tiki-integrator.php?repID=$1 [QSA,L]
  182. RewriteRule ^sheet([0-9]+) tiki-view_sheets.php?sheetId=$1 [QSA,L]
  183. RewriteRule ^ws([0-9]+) tiki-workspaces_desktop.php?workspaceId=$1 [QSA,L]
  184.  
  185. RewriteRule \.(css|gif|jpg|png|php|html|js|htm|shtml|cgi|sql|phtml|txt|ihtml) - [L]
  186.  
  187. # todo add support for all characters allowed in a Wiki name
  188. # make sure this is the last rule!
  189. RewriteRule ^show:(~?)([-_\+A-Za-z0-9]+)$ tiki-slideshow.php?page=$1$2 [QSA,L]
  190. RewriteRule ^([^/\.]+)$ tiki-index.php?page=$1 [QSA,L]
  191.  
  192. # how to redierct to a wiki page on a not found error: take away the comment + adapt the pagename
  193. # ErrorDocument 404 tiki-index.php?page=Page+not+found
  194.  
  195. </IfModule>
  196. # End of rewrite rules
  197. </VirtualHost>
  198.  
Advertisement
Add Comment
Please, Sign In to add comment