In this page we collect apache configuration files, that will be distributed in the future with moin. An non expirenced user will be able to use the files with minimal changes.

   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>
root-wiki-cgi.txt

--

Is there any possibility to run MoinMoin in a user dir via suexec AND to hide the /~user-form URLs needed for suexec? As that is an obvious contradication, is there any trick? I.e. rewrite the URL before suexec gets to see it?

MoinMoin: ApacheConfigExamples (last edited 2008-10-07 16:08:32 by ReimarBauer)