# 06maindirhttp begin
	DirectoryIndex index.html index.php
	<IfModule mod_userdir.c>
		UserDir disabled
	</IfModule>

	php_admin_value default_charset "UTF-8"

	<Directory {usr_share_gforge}/www>
		Include   {gforge_etc}/httpd.secrets
	</Directory>

	ScriptAliasMatch ^{sys_urlprefix}plugins/([^/]*)/cgi-bin/(.*) {usr_share_gforge}/plugins/$1/cgi-bin/$2

	# Projects and Users script
	<Location {sys_urlprefix}projects>
		ForceType application/x-httpd-php
	</Location>
	<Location {sys_urlprefix}users>
		ForceType application/x-httpd-php
	</Location>

	# 404 Error document
	ErrorDocument 404 {sys_urlprefix}404.php

	# FusionForge without the DNS delegation
	# Project home pages are in a virtual /www/<group> location
	#	AliasMatch ^/www/([^/]*)/(.*) {gforge_chroot}{groupdir}/$1/htdocs/$2
	#	ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) {gforge_chroot}{groupdir}/$1/cgi-bin/$2
	#	<Directory {gforge_chroot}{groupdir}>
	#		Options Indexes FollowSymlinks
	#		AllowOverride All
	#		order allow,deny
	#		allow from all
	#	</Directory>

        Alias {sys_urlprefix}fckeditor/ /usr/share/fckeditor/
        <Directory "/usr/share/fckeditor/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order allow,deny
	    allow from all
        </Directory>

        Alias {sys_urlprefix}anonscm/ {var_lib_gforge}/chroot/scmrepos/

        <DirectoryMatch {var_lib_gforge}/chroot/scmrepos/[^/]*>
            Options -Indexes
        </DirectoryMatch>
        <DirectoryMatch {var_lib_gforge}/chroot/scmrepos/[^/]*/.*>
            Options +Indexes
        </DirectoryMatch>

	<Proxy http://127.0.0.1:8081/*>
	    Allow from all
	</Proxy>

	<Location {sys_urlprefix}scm/loggerhead/>
	    ProxyPass http://127.0.0.1:8081/
	    ProxyPassReverse http://127.0.0.1:8081/
	</Location>
# 06maindirhttp end
