Index: TipAndDoc/apache2/conf.d/apache2-doc
===================================================================
--- TipAndDoc/apache2/conf.d/apache2-doc	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
+++ TipAndDoc/apache2/conf.d/apache2-doc	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
@@ -0,0 +1,21 @@
+Alias /manual /usr/share/doc/apache2-doc/manual/
+
+<Directory "/usr/share/doc/apache2-doc/manual/">
+    Options Indexes FollowSymlinks
+    AllowOverride None
+    Order allow,deny
+    Allow from all
+    AddDefaultCharset ISO-8859-1
+</Directory>
+
+<Directory "/usr/share/doc/apache2-doc/manual/ja/">
+	AddDefaultCharset UTF-8
+</Directory>
+
+<Directory "/usr/share/doc/apache2-doc/manual/ko/">
+	AddDefaultCharset EUC-KR
+</Directory>
+
+<Directory "/usr/share/doc/apache2-doc/manual/tr/">
+	AddDefaultCharset UTF-8
+</Directory>
Index: TipAndDoc/apache2/conf.d/denydot
===================================================================
--- TipAndDoc/apache2/conf.d/denydot	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
+++ TipAndDoc/apache2/conf.d/denydot	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
@@ -0,0 +1,12 @@
+# prevent files and directories started with 'dot' (ex: .svn/)
+# from being viewed
+
+<FilesMatch "^\.">
+	Order Allow,Deny
+	Deny from all
+</FilesMatch>
+
+<DirectoryMatch "/\.">
+	Order Allow,Deny
+	Deny from all
+</DirectoryMatch>
Index: TipAndDoc/apache2/httpd.conf
===================================================================
--- TipAndDoc/apache2/httpd.conf	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
+++ TipAndDoc/apache2/httpd.conf	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
@@ -0,0 +1,4 @@
+NameVirtualHost *:443
+<IfModule mod_status.c>
+	ExtendedStatus On
+</IfModule>
Index: TipAndDoc/apache2/sites-available/lab
===================================================================
--- TipAndDoc/apache2/sites-available/lab	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
+++ TipAndDoc/apache2/sites-available/lab	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
@@ -0,0 +1,74 @@
+<VirtualHost *:80>
+#   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"
+	<Directory />
+		Options FollowSymLinks
+		AllowOverride None
+		Order Deny,Allow
+		Deny from all
+	</Directory>
+	<Directory /var/www/lab>
+		Order Allow,Deny
+		Allow from all
+	</Directory>
+
+# Alias for project independent contents
+	<Location /static>
+		Order Allow,Deny
+		Allow from all
+	</Location>
+	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/
+	<Location /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"
+		<LimitExcept GET PROPFIND OPTIONS REPORT>
+			Order Allow,Deny
+			Deny from all
+		</LimitExcept>
+		Order Allow,Deny
+		Allow from all
+	</Location>
+
+# 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
+
+	<Location /trac>
+		<LimitExcept GET>
+			Order Allow,Deny
+			Deny from all
+		</LimitExcept>
+		Order Allow,Deny
+		Allow from all
+	</Location>
+	<LocationMatch /trac/[^/]+/login>
+		Deny from all
+	</LocationMatch>
+
+## 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]
+
+</VirtualHost>
Index: TipAndDoc/apache2/sites-available/ssl.lab
===================================================================
--- TipAndDoc/apache2/sites-available/ssl.lab	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
+++ TipAndDoc/apache2/sites-available/ssl.lab	(revision e135cc7fa07a7d689de6eb806ce5ee67ad77c5f9)
@@ -0,0 +1,98 @@
+<VirtualHost *:443>
+#   General setup for the virtual host
+	ServerName lab.mitty.jp
+	ServerSignature On
+
+	LogLevel warn
+	ErrorLog "|/usr/sbin/rotatelogs /var/log/apache2/ssl/error_lab_%Y%m%d_log 86400 540"
+	CustomLog "|/usr/sbin/rotatelogs /var/log/apache2/ssl/access_lab_%Y%m%d_log 86400 540" combined
+
+	SSLEngine on
+	SSLCertificateFile "/path/to/ssl/server.crt"
+	SSLCertificateKeyFile "/path/to/ssl/server.key"
+
+	BrowserMatch "MSIE [2-6]" \
+        	 nokeepalive ssl-unclean-shutdown \
+        	 downgrade-1.0 force-response-1.0
+	# MSIE 7 and newer should be able to use keepalive
+	BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
+
+	DocumentRoot "/var/www/lab"
+	<Directory />
+		SSLRequireSSL
+		Options FollowSymLinks
+		AllowOverride None
+		Order Deny,Allow
+		Deny from all
+	</Directory>
+	<Directory /var/www/lab>
+		Order Allow,Deny
+		Allow from all
+	</Directory>
+
+	SetEnv HTTPS 1
+
+# Alias for project independent contents
+	<Location /static>
+		Order Allow,Deny
+		Allow from all
+	</Location>
+	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/
+	<Location /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"
+		<LimitExcept GET PROPFIND OPTIONS REPORT>
+			AuthType Basic
+			AuthName "Authentication for lab.mitty.jp"
+			AuthUserFile /home/tools/passwd/htpasswd.lab
+			AuthzSVNAccessFile /home/tools/passwd/svn-authz.lab
+			Require valid-user
+		</LimitExcept>
+		Order Allow,Deny
+		Allow from all
+	</Location>
+
+# 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
+
+	<Location /trac>
+		<LimitExcept GET>
+			AuthType Basic
+			AuthName "Authentication for lab.mitty.jp"
+			AuthUserFile /home/tools/passwd/htpasswd.lab
+			Require valid-user
+		</LimitExcept>
+		Order Allow,Deny
+		Allow from all
+	</Location>
+	<LocationMatch /trac/[^/]+/login>
+		Require valid-user
+	</LocationMatch>
+
+## Trac query redirect
+	RewriteEngine On
+	RewriteCond %{REQUEST_METHOD} POST
+	RewriteRule ^/trac/([^/]+)/query$ - [L]
+	
+	RewriteCond %{QUERY_STRING} ^$
+	RewriteCond %{HTTP_COOKIE} !trac_auth=
+	RewriteRule ^/trac/([^/]+)/query$ /trac/$1/query?status=!&group=component [R,L]
+	
+	RewriteCond %{QUERY_STRING} ^$
+	RewriteCond %{HTTP_COOKIE} trac_auth=
+	RewriteRule ^/trac/([^/]+)/query$ /trac/$1/query?status=!closed&group=component [R,L]
+
+</VirtualHost>
