#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:$http_port

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:$http_port>
	ServerAdmin $user@$server_name
	DocumentRoot "$mdr"
	ServerName _default_
	ServerAlias $server_name
	ErrorLog "$logs/localhost.error.log"
	CustomLog "$logs/localhost.access.log" combined

	# User home directories
	#Include $conf/extra/httpd-userdir.conf
	<IfModule dir_module>
		DirectoryIndex index.html index.php index.jsp index.php5 index_html
	</IfModule>
	<Directory "$mdr">
		Options Indexes FollowSymLinks
		#
		# AllowOverride controls what directives may be placed in .htaccess files.
		# It can be "All", "None", or any combination of the keywords:
		#   Options FileInfo AuthConfig Limit
		#
		AllowOverride None
		#
		# Controls who can get stuff from this server.
		#
		Order allow,deny
		Allow from all
	</Directory>
	<Directory $dr/cgi-bin">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
 	<Directory $dr/icons">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
  	<Directory $dr/uploads">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
 	<Directory $dr/tmp">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
 	<Directory $dr/errors">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>
	RewriteEngine  on

        RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
	RewriteRule .* - [F]

        # zope example
	## ZMI ACCESS  as /mountpointroot
	#RewriteRule ^/mountpointroot(.*)   http://$server_name:ZOPEPORT/VirtualHostBase/http/%{HTTP_HOST}:$http_port/VirtualHostRoot/_vh_mountpointroot$1 [L,P]
	## SITE ACCESS at /mountpoint
	#RewriteRule ^/mountpoint(.*)       http://$server_name:ZOPEPORT/VirtualHostBase/http/%{HTTP_HOST}:$http_port/ZOPE_INNER_SITE_ID/VirtualHostRoot/_vh_mountpoint$1 [L,P]


        # zope example at /
	## SITE ACCESS at /
	#RewriteRule ^/(.*)       http://$server_name:ZOPEPORT/VirtualHostBase/http/%{HTTP_HOST}:$http_port/ZOPE_INNER_SITE_ID/VirtualHostRoot/$1 [L,P]

</VirtualHost>

# vim:set ft=apache:
