Attachment 'root-wiki-cgi.txt'

Download

   1 # How to use this file: 
   2 
   3 # Debian: copy into /etc/apache2/sites-available and create a symlink
   4 # in /etc/apache2/sites-enabled/
   5 # Other: include this file at the end of /etc/httpd/httpd.conf
   6 
   7 
   8 # This wiki is served on port 80 on any address
   9 NameVirtualHost *:80
  10 
  11 <VirtualHost *:80>
  12 	# This url will be served
  13 	ServerName wiki.example.com
  14 	# You can add more names to this server as you like
  15 	ServerAlias samplewiki
  16 	
  17     	# Rewrite urls
  18     	RewriteEngine On
  19     	RewriteLogLevel 0
  20     	# map static files to htdocs
  21     	RewriteRule ^/wiki/(.*)$ /usr/local/share/moin/htdocs/$1 [last]
  22     	# map everything else to server script
  23     	RewriteRule ^(.*)$ /var/local/wiki/samplewiki/moin.cgi$1 [last,type=application/x-httpd-cgi]
  24 
  25 	# Setup the wiki directory options
  26 	<Directory "/var/local/wiki/samplewiki">
  27 		AllowOverride None
  28 		# XXX We need to ban everything here but running the cgi
  29 		# Or maybe run the cgi from another location.
  30 		Options ExecCGI -MultiViews
  31 		Order allow,deny
  32 		Allow from all
  33 	</Directory>
  34 
  35 </VirtualHost>

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-01-28 16:51:42, 1.0 KB) [[attachment:root-wiki-cgi.txt]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.