# How to use this file: # Debian: copy into /etc/apache2/sites-available and create a symlink # in /etc/apache2/sites-enabled/ # Other: include this file at the end of /etc/httpd/httpd.conf # This wiki is served on port 80 on any address NameVirtualHost *:80 # This url will be served ServerName wiki.example.com # You can add more names to this server as you like ServerAlias samplewiki # Rewrite urls RewriteEngine On RewriteLogLevel 0 # map static files to htdocs RewriteRule ^/wiki/(.*)$ /usr/local/share/moin/htdocs/$1 [last] # map everything else to server script RewriteRule ^(.*)$ /var/local/wiki/samplewiki/moin.cgi$1 [last,type=application/x-httpd-cgi] # Setup the wiki directory options AllowOverride None # XXX We need to ban everything here but running the cgi # Or maybe run the cgi from another location. Options ExecCGI -MultiViews Order allow,deny Allow from all