2 # General setup for the virtual host
3 ServerName lab.mitty.jp
7 ErrorLog "|/usr/sbin/rotatelogs /var/log/apache2/error_lab_%Y%m%d_log 86400 540"
8 CustomLog "|/usr/sbin/rotatelogs /var/log/apache2/access_lab_%Y%m%d_log 86400 540" combined
10 DocumentRoot "/var/www/lab"
12 Options FollowSymLinks
17 <Directory /var/www/lab>
22 # Alias for project independent contents
27 Alias /static/trac /var/www/trac
28 Alias /static/svn /home/tools/www/svn
29 Alias /static/htdocs /home/tools/trac/htdocs
32 RedirectMatch ^/svn$ /svn/
34 # Requests for a collection must have a trailing slash on the URI.
36 SVNParentPath /var/svn/lab
38 SVNIndexXSLT "/static/svn/svnindex.xsl"
39 <LimitExcept GET PROPFIND OPTIONS REPORT>
48 ScriptAlias /trac /home/tools/trac/cgi-bin/trac.fcgi
49 FcgidInitialEnv PYTHON_EGG_CACHE "/tmp"
50 FcgidInitialEnv TRAC_ENV_PARENT_DIR "/var/trac/lab"
52 # increase fcgi timeout value to wait slow cgi exec
63 <LocationMatch /trac/[^/]+/login>
67 ## Trac query redirect
69 RewriteCond %{QUERY_STRING} ^$
70 RewriteCond %{REQUEST_METHOD} !POST
71 RewriteCond %{HTTP_COOKIE} !trac_auth=
72 RewriteRule ^/trac/([^/]+)/query$ /trac/$1/query?status=!&group=component [R,L]