# General setup for the virtual host ServerName lab.mitty.jp ServerSignature On LogLevel warn ErrorLog "|/usr/sbin/rotatelogs /var/log/apache2/error_lab_%Y%m%d_log 86400 540" CustomLog "|/usr/sbin/rotatelogs /var/log/apache2/access_lab_%Y%m%d_log 86400 540" combined DocumentRoot "/var/www/lab" Options FollowSymLinks AllowOverride None Order Deny,Allow Deny from all Order Allow,Deny Allow from all # Alias for project independent contents Order Allow,Deny Allow from all Alias /static/trac /var/www/trac Alias /static/svn /home/tools/www/svn Alias /static/htdocs /home/tools/trac/htdocs # Alias for SVN RedirectMatch ^/svn$ /svn/ # Requests for a collection must have a trailing slash on the URI. DAV svn SVNParentPath /var/svn/lab SVNListParentPath on SVNIndexXSLT "/static/svn/svnindex.xsl" Order Allow,Deny Deny from all Order Allow,Deny Allow from all # Alias for Trac ScriptAlias /trac /home/tools/trac/cgi-bin/trac.fcgi FcgidInitialEnv PYTHON_EGG_CACHE "/tmp" FcgidInitialEnv TRAC_ENV_PARENT_DIR "/var/trac/lab" # increase fcgi timeout value to wait slow cgi exec FcgidIOTimeout 180 Order Allow,Deny Deny from all Order Allow,Deny Allow from all Deny from all ## Trac query redirect RewriteEngine On RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{HTTP_COOKIE} !trac_auth= RewriteRule ^/trac/([^/]+)/query$ /trac/$1/query?status=!&group=component [R,L]