# # TWiki configuration # # Created by John Rousseau on 1/19/2004 # ScriptAlias /twiki/bin/ "/srv/www/twiki/bin/" Alias /twiki/ "/srv/www/twiki/" # Support SVG types AddType image/svg+xml .svg AddType image/svg+xml .svgz AddEncoding x-gzip .svgz # Take over the server root AliasMatch ^/$ "/srv/www/twiki/bin/view/Main/ExteNdHome" # The bin directory AllowOverride None # perl cgi mode #SetHandler cgi-script # mod_perl mode SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI # Password file for TWiki users # # The path here must be a system file pathname, not a URL - first part should # match the $dataDir setting in TWiki.cfg AuthUserFile /srv/www/twiki/data/.htpasswd AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith).' AuthType Basic # File to return on access control error (e.g. wrong password) # The path here must be a URL path, not a file pathname - first part should # match the $scriptUrlPath in TWiki.cfg ErrorDocument 401 /twiki/bin/oops/TWiki/TWikiRegistration?template=oopsauth SetHandler blabla allow from all require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user require valid-user allow from all # The pub directory Options FollowSymLinks +Includes AllowOverride None Allow from all deny from all deny from all LoadModule rewrite_module /usr/lib/apache2/mod_rewrite.so # Voodoo magic from http://httpd.apache.org/docs-2.0/misc/rewriteguide.html RewriteEngine on RewriteCond %{HTTP_HOST} !^bunch\.qalab\.wal\.novell\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{SERVER_PORT} !^80$ RewriteRule ^/(.*) http://bunch.qalab.wal.novell.com:%{SERVER_PORT}/$1 [L,R] RewriteCond %{HTTP_HOST} !^bunch\.qalab\.wal\.novell\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://bunch.qalab.wal.novell.com/$1 [L,R] # # End of TWiki configuration #