SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On AllowOverride all Allow from all Options FollowSymLinks +Includes AllowOverride None Allow from all ServerAdmin webmaster@example.org DocumentRoot /var/www/twiki.example.org/twiki ServerName twiki.example.org ScriptAlias /twiki/bin/ /var/www/twiki.example.org/twiki/bin/ Alias /twiki/ /var/www/twiki.example.org/twiki/ ErrorLog /var/www/twiki.example.org/logs/error.log CustomLog /var/www/twiki.example.org/logs/access.log common RedirectMatch ^/$ http://twiki.example.org/bin/view/Main/WebHome RewriteEngine on # RewriteLog /var/www/twiki.example.org/logs/rewrite.log # RewriteLogLevel 9 # If we used a topic or web name, rewrite it into view RewriteCond %{REQUEST_FILENAME} /twiki/ RewriteCond /var/www/twiki.example.org/twiki-data%{REQUEST_FILENAME}.txt -f [OR] RewriteCond /var/www/twiki.example.org/twiki-data%{REQUEST_FILENAME} -d RewriteRule ^(.*)$ /twiki/bin/view$1 # If we used a script name, rewrite it into twiki/bin RewriteCond %{REQUEST_FILENAME} !/twiki/ RewriteCond %{REQUEST_FILENAME} ^/([^/]+)/ RewriteCond /var/www/twiki.example.org/twiki/bin/%1 -f RewriteRule ^/[^/]+/(.*)$ /twiki/bin/%1/$1 [PT] # Prevent 'Cross-Site Tracing' attacks # (http://www.apacheweek.com/issues/03-01-24#news) RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F]