[Fusionforge-commits] r10038 - in trunk/gforge: etc etc/httpd.conf.d-fhs etc/httpd.conf.d-opt etc/httpd.conf.d-usrlocal utils

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Jun 16 17:24:01 CEST 2010


Author: lolando
Date: 2010-06-16 17:24:01 +0200 (Wed, 16 Jun 2010)
New Revision: 10038

Added:
   trunk/gforge/etc/httpd.conf.d-fhs/
   trunk/gforge/etc/httpd.conf.d-fhs/01-namevhost.conf
   trunk/gforge/etc/httpd.conf.d-fhs/02-config-main.conf
   trunk/gforge/etc/httpd.conf.d-fhs/10-vhosts-main.conf
   trunk/gforge/etc/httpd.conf.d-fhs/20-vhosts-lists.conf
   trunk/gforge/etc/httpd.conf.d-fhs/30-vhosts-projects.conf
   trunk/gforge/etc/httpd.conf.d-fhs/40-vhosts-extra.conf
   trunk/gforge/etc/httpd.conf.d-fhs/auth-main.inc
   trunk/gforge/etc/httpd.conf.d-fhs/auth-projects.inc
   trunk/gforge/etc/httpd.conf.d-fhs/block-trace.inc
   trunk/gforge/etc/httpd.conf.d-fhs/log.inc
   trunk/gforge/etc/httpd.conf.d-fhs/plugin-fckeditor.inc
   trunk/gforge/etc/httpd.conf.d-fhs/plugin-generic.inc
   trunk/gforge/etc/httpd.conf.d-fhs/plugin-mediawiki.inc
   trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmbzr.inc
   trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmdarcs.inc
   trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmgit.inc
   trunk/gforge/etc/httpd.conf.d-fhs/projects-in-mainvhost.inc
   trunk/gforge/etc/httpd.conf.d-fhs/secrets.inc
   trunk/gforge/etc/httpd.conf.d-fhs/ssl-off.inc
   trunk/gforge/etc/httpd.conf.d-fhs/ssl-on.inc
   trunk/gforge/etc/httpd.conf.d-fhs/vhost-list.inc
   trunk/gforge/etc/httpd.conf.d-fhs/vhost-main.inc
   trunk/gforge/etc/httpd.conf.d-fhs/vhost-projects.inc
   trunk/gforge/etc/httpd.conf.d-opt/
   trunk/gforge/etc/httpd.conf.d-opt/01-namevhost.conf
   trunk/gforge/etc/httpd.conf.d-opt/02-config-main.conf
   trunk/gforge/etc/httpd.conf.d-opt/10-vhosts-main.conf
   trunk/gforge/etc/httpd.conf.d-opt/20-vhosts-lists.conf
   trunk/gforge/etc/httpd.conf.d-opt/30-vhosts-projects.conf
   trunk/gforge/etc/httpd.conf.d-opt/40-vhosts-extra.conf
   trunk/gforge/etc/httpd.conf.d-opt/auth-main.inc
   trunk/gforge/etc/httpd.conf.d-opt/auth-projects.inc
   trunk/gforge/etc/httpd.conf.d-opt/block-trace.inc
   trunk/gforge/etc/httpd.conf.d-opt/log.inc
   trunk/gforge/etc/httpd.conf.d-opt/plugin-fckeditor.inc
   trunk/gforge/etc/httpd.conf.d-opt/plugin-generic.inc
   trunk/gforge/etc/httpd.conf.d-opt/plugin-mediawiki.inc
   trunk/gforge/etc/httpd.conf.d-opt/plugin-scmbzr.inc
   trunk/gforge/etc/httpd.conf.d-opt/plugin-scmdarcs.inc
   trunk/gforge/etc/httpd.conf.d-opt/plugin-scmgit.inc
   trunk/gforge/etc/httpd.conf.d-opt/projects-in-mainvhost.inc
   trunk/gforge/etc/httpd.conf.d-opt/secrets.inc
   trunk/gforge/etc/httpd.conf.d-opt/ssl-off.inc
   trunk/gforge/etc/httpd.conf.d-opt/ssl-on.inc
   trunk/gforge/etc/httpd.conf.d-opt/vhost-list.inc
   trunk/gforge/etc/httpd.conf.d-opt/vhost-main.inc
   trunk/gforge/etc/httpd.conf.d-opt/vhost-projects.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/
   trunk/gforge/etc/httpd.conf.d-usrlocal/01-namevhost.conf
   trunk/gforge/etc/httpd.conf.d-usrlocal/02-config-main.conf
   trunk/gforge/etc/httpd.conf.d-usrlocal/10-vhosts-main.conf
   trunk/gforge/etc/httpd.conf.d-usrlocal/20-vhosts-lists.conf
   trunk/gforge/etc/httpd.conf.d-usrlocal/30-vhosts-projects.conf
   trunk/gforge/etc/httpd.conf.d-usrlocal/40-vhosts-extra.conf
   trunk/gforge/etc/httpd.conf.d-usrlocal/auth-main.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/auth-projects.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/block-trace.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/log.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-fckeditor.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-generic.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-mediawiki.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmbzr.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmdarcs.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmgit.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/projects-in-mainvhost.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/secrets.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-off.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-on.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-list.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-main.inc
   trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-projects.inc
   trunk/gforge/utils/manage-apache-config.sh
Log:
Added script to fill in the blanks from Apache config file snippets for the most common cases

Added: trunk/gforge/etc/httpd.conf.d-fhs/01-namevhost.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/01-namevhost.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/01-namevhost.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,2 @@
+NameVirtualHost *:80
+NameVirtualHost *:443

Added: trunk/gforge/etc/httpd.conf.d-fhs/02-config-main.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/02-config-main.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/02-config-main.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,27 @@
+#
+# Main directory options
+#
+<Directory /usr/share/gforge/www>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /etc/gforge/httpd.conf.d/auth.forge.inc
+  
+  #
+  # PHP settings
+  #
+  
+  php_admin_value include_path "/etc/gforge/custom:/etc/gforge:/usr/share/gforge:/usr/share/gforge/www/include:."
+  php_admin_value default_charset "UTF-8"
+  php_flag register_globals "off"
+  php_flag magic_quotes_gpc "off"
+  
+  # Report E_ALL errors
+  php_admin_value error_reporting 2047
+  
+  # Don't echo error to user
+  php_admin_value display_errors 0
+  
+  # ...but log the errors to error.log
+  php_admin_value log_errors 1
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-fhs/10-vhosts-main.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/10-vhosts-main.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/10-vhosts-main.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,15 @@
+#
+# Main host
+#
+<VirtualHost *:80>
+  Include /etc/gforge/httpd.conf.d/vhost-main.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /etc/gforge/httpd.conf.d/vhost-main.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-fhs/20-vhosts-lists.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/20-vhosts-lists.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/20-vhosts-lists.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,57 @@
+#
+# List host
+#
+<VirtualHost *:80>
+  Include /etc/gforge/httpd.conf.d/vhost-list.inc
+
+  AddHandler cgi-script .cgi
+  
+  ScriptAlias /cgi-bin/mailman/ /var/lib/mailman/cgi-bin/
+  ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
+  
+  Alias /pipermail /var/lib/mailman/archives/public
+  <Directory /var/lib/mailman/archives/public>
+    AllowOverride Options
+    Options FollowSymLinks
+  </Directory>
+  
+  Alias /images/mailman /usr/share/images/mailman
+  <Location /images/mailman>
+    order allow,deny
+    allow from all
+  </Location>
+
+  RewriteEngine on  
+  RewriteRule ^/$ http://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R=301]
+  
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /etc/gforge/httpd.conf.d/vhost.list.inc
+
+  AddHandler cgi-script .cgi
+  
+  ScriptAlias /cgi-bin/mailman/ /var/lib/mailman/cgi-bin/
+  ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
+  
+  Alias /pipermail /var/lib/mailman/archives/public
+  <Directory /var/lib/mailman/archives/public>
+    AllowOverride Options
+    Options FollowSymLinks
+  </Directory>
+  
+  Alias /images/mailman /usr/share/images/mailman
+  <Location /images/mailman>
+    order allow,deny
+    allow from all
+  </Location>
+  
+  RewriteEngine on  
+  RewriteRule ^/$ https://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R=301]
+  
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-fhs/30-vhosts-projects.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/30-vhosts-projects.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/30-vhosts-projects.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,16 @@
+#
+# <project>.forge.domain hosts
+#
+# This is used when FusionForge has DNS delegation
+<VirtualHost *:80>
+  Include /etc/gforge/httpd.conf.d/vhost-projects.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /etc/gforge/httpd.conf.d/vhost-projects.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-fhs/40-vhosts-extra.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/40-vhosts-extra.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/40-vhosts-extra.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,2 @@
+# Other virtual hosts, as requested by users
+Include /var/lib/gforge/etc/httpd.vhosts

Added: trunk/gforge/etc/httpd.conf.d-fhs/auth-main.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/auth-main.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/auth-main.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+# HTTP Basic Auth hook for the forge itself
+
+order allow,deny
+allow from all

Added: trunk/gforge/etc/httpd.conf.d-fhs/auth-projects.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/auth-projects.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/auth-projects.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+# HTTP Basic Auth hook for the project vhosts
+
+order allow,deny
+allow from all

Added: trunk/gforge/etc/httpd.conf.d-fhs/block-trace.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/block-trace.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/block-trace.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+RewriteEngine on
+RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
+RewriteRule .* - [F]

Added: trunk/gforge/etc/httpd.conf.d-fhs/log.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/log.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/log.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,6 @@
+# Custom logging
+
+LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
+CustomLog "|{cronolog_path} {var_log_gforge}/%Y/%m/%d/gforge.log" gforge
+LogFormat "%{Host}i %h %l %u %t %{SSL_PROTOCOL}x:%{SSL_CIPHER}x \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedvhssl
+CustomLog "|{cronolog_path} {var_log_gforge}/%Y/%m/%d/awstats.log" combinedvhssl

Added: trunk/gforge/etc/httpd.conf.d-fhs/plugin-fckeditor.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/plugin-fckeditor.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/plugin-fckeditor.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,7 @@
+Alias /fckeditor/ /usr/share/fckeditor/
+<Directory "/usr/share/fckeditor/">
+  Options Indexes MultiViews FollowSymLinks
+  AllowOverride None
+  Order allow,deny
+  allow from all
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-fhs/plugin-generic.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/plugin-generic.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/plugin-generic.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,10 @@
+ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /usr/share/gforge/plugins/$1/cgi-bin/$2
+
+Alias /anonscm/ /var/lib/gforge/chroot/scmrepos/
+
+<DirectoryMatch /var/lib/gforge/chroot/scmrepos/[^/]*>
+  Options -Indexes
+</DirectoryMatch>
+<DirectoryMatch /var/lib/gforge/chroot/scmrepos/[^/]*/.*>
+  Options +Indexes
+</DirectoryMatch>

Added: trunk/gforge/etc/httpd.conf.d-fhs/plugin-mediawiki.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/plugin-mediawiki.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/plugin-mediawiki.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+RedirectMatch 301 ^(/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
+AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php /usr/share/gforge/www/plugins/mediawiki/index.php
+AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) /var/lib/gforge/plugins/mediawiki/wikidata/$1/images/$2
+AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/skins/(.*) /usr/share/mediawikiskins/$2

Added: trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmbzr.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmbzr.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmbzr.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,8 @@
+<Proxy http://127.0.0.1:8081/*>
+  Allow from all
+</Proxy>
+
+<Location /scm/loggerhead/>
+  ProxyPass http://127.0.0.1:8081/
+  ProxyPassReverse http://127.0.0.1:8081/
+</Location>

Added: trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmdarcs.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmdarcs.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmdarcs.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+<Directory /usr/share/gforge/plugins/scmdarcs/cgi-bin>
+  SetEnv DARCSWEB_CONFPATH /etc/gforge/plugins/scmdarcs/
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmgit.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmgit.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/plugin-scmgit.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+<Directory /usr/share/gforge/plugins/scmgit/cgi-bin>
+  SetEnv GITWEB_CONFIG /etc/gforge/plugins/scmgit/gitweb.conf
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-fhs/projects-in-mainvhost.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/projects-in-mainvhost.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/projects-in-mainvhost.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,11 @@
+# This is used instead of *.forgename vhosts only
+
+# Project home pages are in a virtual /www/<group> location
+AliasMatch ^/www/([^/]*)/(.*) /var/lib/gforge/chroot/home/groups/$1/htdocs/$2
+ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /var/lib/gforge/chroot/home/groups/$1/cgi-bin/$2
+<Directory /var/lib/gforge/chroot/home/groups>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /etc/gforge/httpd.conf.d/auth.projects.inc
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-fhs/secrets.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/secrets.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/secrets.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,20 @@
+#RequestHeader unset GForgeDbhost
+#RequestHeader append GForgeDbhost {db_host}
+
+RequestHeader unset GForgeDbport
+RequestHeader append GForgeDbport {db_port}
+
+RequestHeader unset GForgeDbname
+RequestHeader append GForgeDbname {db_name}
+
+RequestHeader unset GForgeDbuser
+RequestHeader append GForgeDbuser {db_user}
+
+RequestHeader unset GForgeDbpasswd
+RequestHeader append GForgeDbpasswd {db_password}
+
+RequestHeader unset GForgeLdapPasswd
+RequestHeader append GForgeLdapPasswd {ldap_web_add_password}
+
+RequestHeader unset GForgeJabberPasswd
+RequestHeader append GForgeJabberPasswd {sys_jabber_pass}

Added: trunk/gforge/etc/httpd.conf.d-fhs/ssl-off.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/ssl-off.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/ssl-off.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,8 @@
+<IfModule apache_ssl.c>
+  SSLDisable
+</IfModule>
+
+# Uncomment the following lines to redirect HTTP to HTTPS globally:
+
+#RewriteEngine On
+#RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Added: trunk/gforge/etc/httpd.conf.d-fhs/ssl-on.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/ssl-on.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/ssl-on.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,23 @@
+<IfModule mod_ssl.c>
+  SSLEngine on
+  
+  SSLCertificateFile {sys_sslcrt}
+  SSLCertificateKeyFile {sys_sslkey}
+  {sys_ssl_apache_extra_cmd}
+  
+  <Files ~ "\.(cgi|shtml)$">
+    SSLOptions +StdEnvVars
+  </Files>
+  
+  <Directory "/usr/lib/cgi-bin">
+    SSLOptions +StdEnvVars
+  </Directory>
+  
+  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+</IfModule>
+
+<IfModule apache_ssl.c>
+  SSLEnable
+  
+  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+</IfModule>

Added: trunk/gforge/etc/httpd.conf.d-fhs/vhost-list.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/vhost-list.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/vhost-list.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1 @@
+ServerName {lists_host}

Added: trunk/gforge/etc/httpd.conf.d-fhs/vhost-main.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/vhost-main.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/vhost-main.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,29 @@
+ServerName {domain_name}
+ServerAlias www.{domain_name}
+ServerAdmin {server_admin}
+DocumentRoot /usr/share/gforge/www
+DirectoryIndex index.html index.php
+
+<IfModule mod_userdir.c>
+  UserDir disabled
+</IfModule>
+
+<Directory /usr/share/gforge/www>
+  Include /etc/gforge/httpd.conf.d/secrets.inc
+</Directory>
+
+<Location /projects>
+  ForceType application/x-httpd-php
+</Location>
+<Location /users>
+  ForceType application/x-httpd-php
+</Location>
+
+Alias /images/ /usr/share/gforge/www/images/
+
+Include /etc/gforge/httpd.conf.d/plugin-*.inc
+
+# For FusionForge without DNS delegation, uncomment this
+# and remove 30-vhosts-projects.conf
+# Include /etc/gforge/httpd.conf.d/projects-in-mainvhost.inc
+  

Added: trunk/gforge/etc/httpd.conf.d-fhs/vhost-projects.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-fhs/vhost-projects.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-fhs/vhost-projects.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,25 @@
+# per-project vhost content
+
+ServerName siteadmin.{domain_name}
+ServerAlias *.{domain_name}
+DirectoryIndex index.html index.php index.htm
+
+# This is magic for virtual hosting!
+UseCanonicalName Off
+
+VirtualDocumentRoot /var/lib/gforge/chroot/home/groups/%1/htdocs
+VirtualScriptAlias /var/lib/gforge/chroot/home/groups/%1/cgi-bin
+
+SetEnvIf Host "(.*)\.{domain_name}" AWSTATS_FORCE_CONFIG=group-$1
+
+php_admin_value default_charset "UTF-8"
+php_admin_value include_path "/etc/gforge/custom:/etc/gforge:/usr/share/gforge:/usr/share/gforge/www/include:."
+
+Alias /themes-gforge/ /usr/share/gforge/www/themes/
+
+<Directory /var/lib/gforge/chroot/home/groups>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /etc/gforge/httpd.conf.d/auth.projects.inc
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-opt/01-namevhost.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/01-namevhost.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/01-namevhost.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,2 @@
+NameVirtualHost *:80
+NameVirtualHost *:443

Added: trunk/gforge/etc/httpd.conf.d-opt/02-config-main.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/02-config-main.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/02-config-main.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,27 @@
+#
+# Main directory options
+#
+<Directory /opt/fusionforge/www>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /opt/fusionforge/etc/httpd.conf.d/auth.forge.inc
+  
+  #
+  # PHP settings
+  #
+  
+  php_admin_value include_path "/opt/fusionforge/etc/custom:/opt/fusionforge/etc:/opt/fusionforge:/opt/fusionforge/www/include:."
+  php_admin_value default_charset "UTF-8"
+  php_flag register_globals "off"
+  php_flag magic_quotes_gpc "off"
+  
+  # Report E_ALL errors
+  php_admin_value error_reporting 2047
+  
+  # Don't echo error to user
+  php_admin_value display_errors 0
+  
+  # ...but log the errors to error.log
+  php_admin_value log_errors 1
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-opt/10-vhosts-main.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/10-vhosts-main.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/10-vhosts-main.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,15 @@
+#
+# Main host
+#
+<VirtualHost *:80>
+  Include /opt/fusionforge/etc/httpd.conf.d/vhost-main.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/block-trace.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/log.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /opt/fusionforge/etc/httpd.conf.d/vhost-main.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/block-trace.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/log.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-opt/20-vhosts-lists.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/20-vhosts-lists.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/20-vhosts-lists.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,57 @@
+#
+# List host
+#
+<VirtualHost *:80>
+  Include /opt/fusionforge/etc/httpd.conf.d/vhost-list.inc
+
+  AddHandler cgi-script .cgi
+  
+  ScriptAlias /cgi-bin/mailman/ /var/lib/mailman/cgi-bin/
+  ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
+  
+  Alias /pipermail /var/lib/mailman/archives/public
+  <Directory /var/lib/mailman/archives/public>
+    AllowOverride Options
+    Options FollowSymLinks
+  </Directory>
+  
+  Alias /images/mailman /usr/share/images/mailman
+  <Location /images/mailman>
+    order allow,deny
+    allow from all
+  </Location>
+
+  RewriteEngine on  
+  RewriteRule ^/$ http://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R=301]
+  
+  Include /opt/fusionforge/etc/httpd.conf.d/block-trace.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/log.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /opt/fusionforge/etc/httpd.conf.d/vhost.list.inc
+
+  AddHandler cgi-script .cgi
+  
+  ScriptAlias /cgi-bin/mailman/ /var/lib/mailman/cgi-bin/
+  ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
+  
+  Alias /pipermail /var/lib/mailman/archives/public
+  <Directory /var/lib/mailman/archives/public>
+    AllowOverride Options
+    Options FollowSymLinks
+  </Directory>
+  
+  Alias /images/mailman /usr/share/images/mailman
+  <Location /images/mailman>
+    order allow,deny
+    allow from all
+  </Location>
+  
+  RewriteEngine on  
+  RewriteRule ^/$ https://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R=301]
+  
+  Include /opt/fusionforge/etc/httpd.conf.d/block-trace.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/log.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-opt/30-vhosts-projects.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/30-vhosts-projects.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/30-vhosts-projects.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,16 @@
+#
+# <project>.forge.domain hosts
+#
+# This is used when FusionForge has DNS delegation
+<VirtualHost *:80>
+  Include /opt/fusionforge/etc/httpd.conf.d/vhost-projects.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/block-trace.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/log.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /opt/fusionforge/etc/httpd.conf.d/vhost-projects.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/block-trace.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/log.inc
+  Include /opt/fusionforge/etc/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-opt/40-vhosts-extra.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/40-vhosts-extra.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/40-vhosts-extra.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,2 @@
+# Other virtual hosts, as requested by users
+Include /var/lib/gforge/etc/httpd.vhosts

Added: trunk/gforge/etc/httpd.conf.d-opt/auth-main.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/auth-main.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/auth-main.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+# HTTP Basic Auth hook for the forge itself
+
+order allow,deny
+allow from all

Added: trunk/gforge/etc/httpd.conf.d-opt/auth-projects.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/auth-projects.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/auth-projects.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+# HTTP Basic Auth hook for the project vhosts
+
+order allow,deny
+allow from all

Added: trunk/gforge/etc/httpd.conf.d-opt/block-trace.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/block-trace.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/block-trace.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+RewriteEngine on
+RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
+RewriteRule .* - [F]

Added: trunk/gforge/etc/httpd.conf.d-opt/log.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/log.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/log.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,6 @@
+# Custom logging
+
+LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
+CustomLog "|{cronolog_path} {var_log_gforge}/%Y/%m/%d/gforge.log" gforge
+LogFormat "%{Host}i %h %l %u %t %{SSL_PROTOCOL}x:%{SSL_CIPHER}x \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedvhssl
+CustomLog "|{cronolog_path} {var_log_gforge}/%Y/%m/%d/awstats.log" combinedvhssl

Added: trunk/gforge/etc/httpd.conf.d-opt/plugin-fckeditor.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/plugin-fckeditor.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/plugin-fckeditor.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,7 @@
+Alias /fckeditor/ /usr/share/fckeditor/
+<Directory "/usr/share/fckeditor/">
+  Options Indexes MultiViews FollowSymLinks
+  AllowOverride None
+  Order allow,deny
+  allow from all
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-opt/plugin-generic.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/plugin-generic.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/plugin-generic.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,10 @@
+ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /opt/fusionforge/plugins/$1/cgi-bin/$2
+
+Alias /anonscm/ /opt/fusionforge/data/chroot/scmrepos/
+
+<DirectoryMatch /opt/fusionforge/data/chroot/scmrepos/[^/]*>
+  Options -Indexes
+</DirectoryMatch>
+<DirectoryMatch /opt/fusionforge/data/chroot/scmrepos/[^/]*/.*>
+  Options +Indexes
+</DirectoryMatch>

Added: trunk/gforge/etc/httpd.conf.d-opt/plugin-mediawiki.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/plugin-mediawiki.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/plugin-mediawiki.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+RedirectMatch 301 ^(/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
+AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php /opt/fusionforge/www/plugins/mediawiki/index.php
+AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) /opt/fusionforge/data/plugins/mediawiki/wikidata/$1/images/$2
+AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/skins/(.*) /usr/share/mediawikiskins/$2

Added: trunk/gforge/etc/httpd.conf.d-opt/plugin-scmbzr.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/plugin-scmbzr.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/plugin-scmbzr.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,8 @@
+<Proxy http://127.0.0.1:8081/*>
+  Allow from all
+</Proxy>
+
+<Location /scm/loggerhead/>
+  ProxyPass http://127.0.0.1:8081/
+  ProxyPassReverse http://127.0.0.1:8081/
+</Location>

Added: trunk/gforge/etc/httpd.conf.d-opt/plugin-scmdarcs.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/plugin-scmdarcs.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/plugin-scmdarcs.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+<Directory /opt/fusionforge/plugins/scmdarcs/cgi-bin>
+  SetEnv DARCSWEB_CONFPATH /etc/gforge/plugins/scmdarcs/
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-opt/plugin-scmgit.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/plugin-scmgit.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/plugin-scmgit.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+<Directory /opt/fusionforge/plugins/scmgit/cgi-bin>
+  SetEnv GITWEB_CONFIG /etc/gforge/plugins/scmgit/gitweb.conf
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-opt/projects-in-mainvhost.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/projects-in-mainvhost.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/projects-in-mainvhost.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,11 @@
+# This is used instead of *.forgename vhosts only
+
+# Project home pages are in a virtual /www/<group> location
+AliasMatch ^/www/([^/]*)/(.*) /opt/fusionforge/data/chroot/home/groups/$1/htdocs/$2
+ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /opt/fusionforge/data/chroot/home/groups/$1/cgi-bin/$2
+<Directory /opt/fusionforge/data/chroot/home/groups>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /opt/fusionforge/etc/httpd.conf.d/auth.projects.inc
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-opt/secrets.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/secrets.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/secrets.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,20 @@
+#RequestHeader unset GForgeDbhost
+#RequestHeader append GForgeDbhost {db_host}
+
+RequestHeader unset GForgeDbport
+RequestHeader append GForgeDbport {db_port}
+
+RequestHeader unset GForgeDbname
+RequestHeader append GForgeDbname {db_name}
+
+RequestHeader unset GForgeDbuser
+RequestHeader append GForgeDbuser {db_user}
+
+RequestHeader unset GForgeDbpasswd
+RequestHeader append GForgeDbpasswd {db_password}
+
+RequestHeader unset GForgeLdapPasswd
+RequestHeader append GForgeLdapPasswd {ldap_web_add_password}
+
+RequestHeader unset GForgeJabberPasswd
+RequestHeader append GForgeJabberPasswd {sys_jabber_pass}

Added: trunk/gforge/etc/httpd.conf.d-opt/ssl-off.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/ssl-off.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/ssl-off.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,8 @@
+<IfModule apache_ssl.c>
+  SSLDisable
+</IfModule>
+
+# Uncomment the following lines to redirect HTTP to HTTPS globally:
+
+#RewriteEngine On
+#RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Added: trunk/gforge/etc/httpd.conf.d-opt/ssl-on.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/ssl-on.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/ssl-on.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,23 @@
+<IfModule mod_ssl.c>
+  SSLEngine on
+  
+  SSLCertificateFile {sys_sslcrt}
+  SSLCertificateKeyFile {sys_sslkey}
+  {sys_ssl_apache_extra_cmd}
+  
+  <Files ~ "\.(cgi|shtml)$">
+    SSLOptions +StdEnvVars
+  </Files>
+  
+  <Directory "/usr/lib/cgi-bin">
+    SSLOptions +StdEnvVars
+  </Directory>
+  
+  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+</IfModule>
+
+<IfModule apache_ssl.c>
+  SSLEnable
+  
+  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+</IfModule>

Added: trunk/gforge/etc/httpd.conf.d-opt/vhost-list.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/vhost-list.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/vhost-list.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1 @@
+ServerName {lists_host}

Added: trunk/gforge/etc/httpd.conf.d-opt/vhost-main.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/vhost-main.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/vhost-main.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,29 @@
+ServerName {domain_name}
+ServerAlias www.{domain_name}
+ServerAdmin {server_admin}
+DocumentRoot /opt/fusionforge/www
+DirectoryIndex index.html index.php
+
+<IfModule mod_userdir.c>
+  UserDir disabled
+</IfModule>
+
+<Directory /opt/fusionforge/www>
+  Include /opt/fusionforge/etc/httpd.conf.d/secrets.inc
+</Directory>
+
+<Location /projects>
+  ForceType application/x-httpd-php
+</Location>
+<Location /users>
+  ForceType application/x-httpd-php
+</Location>
+
+Alias /images/ /opt/fusionforge/www/images/
+
+Include /opt/fusionforge/etc/httpd.conf.d/plugin-*.inc
+
+# For FusionForge without DNS delegation, uncomment this
+# and remove 30-vhosts-projects.conf
+# Include /opt/fusionforge/etc/httpd.conf.d/projects-in-mainvhost.inc
+  

Added: trunk/gforge/etc/httpd.conf.d-opt/vhost-projects.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-opt/vhost-projects.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-opt/vhost-projects.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,25 @@
+# per-project vhost content
+
+ServerName siteadmin.{domain_name}
+ServerAlias *.{domain_name}
+DirectoryIndex index.html index.php index.htm
+
+# This is magic for virtual hosting!
+UseCanonicalName Off
+
+VirtualDocumentRoot /opt/fusionforge/data/chroot/home/groups/%1/htdocs
+VirtualScriptAlias /opt/fusionforge/data/chroot/home/groups/%1/cgi-bin
+
+SetEnvIf Host "(.*)\.{domain_name}" AWSTATS_FORCE_CONFIG=group-$1
+
+php_admin_value default_charset "UTF-8"
+php_admin_value include_path "/opt/fusionforge/etc/custom:/opt/fusionforge/etc:/opt/fusionforge:/opt/fusionforge/www/include:."
+
+Alias /themes-gforge/ /opt/fusionforge/www/themes/
+
+<Directory /opt/fusionforge/data/chroot/home/groups>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /opt/fusionforge/etc/httpd.conf.d/auth.projects.inc
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/01-namevhost.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/01-namevhost.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/01-namevhost.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,2 @@
+NameVirtualHost *:80
+NameVirtualHost *:443

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/02-config-main.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/02-config-main.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/02-config-main.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,27 @@
+#
+# Main directory options
+#
+<Directory /usr/local/share/gforge/www>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /etc/gforge/httpd.conf.d/auth.forge.inc
+  
+  #
+  # PHP settings
+  #
+  
+  php_admin_value include_path "/etc/gforge/custom:/etc/gforge:/usr/local/share/gforge:/usr/local/share/gforge/www/include:."
+  php_admin_value default_charset "UTF-8"
+  php_flag register_globals "off"
+  php_flag magic_quotes_gpc "off"
+  
+  # Report E_ALL errors
+  php_admin_value error_reporting 2047
+  
+  # Don't echo error to user
+  php_admin_value display_errors 0
+  
+  # ...but log the errors to error.log
+  php_admin_value log_errors 1
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/10-vhosts-main.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/10-vhosts-main.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/10-vhosts-main.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,15 @@
+#
+# Main host
+#
+<VirtualHost *:80>
+  Include /etc/gforge/httpd.conf.d/vhost-main.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /etc/gforge/httpd.conf.d/vhost-main.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/20-vhosts-lists.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/20-vhosts-lists.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/20-vhosts-lists.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,57 @@
+#
+# List host
+#
+<VirtualHost *:80>
+  Include /etc/gforge/httpd.conf.d/vhost-list.inc
+
+  AddHandler cgi-script .cgi
+  
+  ScriptAlias /cgi-bin/mailman/ /var/lib/mailman/cgi-bin/
+  ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
+  
+  Alias /pipermail /var/lib/mailman/archives/public
+  <Directory /var/lib/mailman/archives/public>
+    AllowOverride Options
+    Options FollowSymLinks
+  </Directory>
+  
+  Alias /images/mailman /usr/share/images/mailman
+  <Location /images/mailman>
+    order allow,deny
+    allow from all
+  </Location>
+
+  RewriteEngine on  
+  RewriteRule ^/$ http://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R=301]
+  
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /etc/gforge/httpd.conf.d/vhost.list.inc
+
+  AddHandler cgi-script .cgi
+  
+  ScriptAlias /cgi-bin/mailman/ /var/lib/mailman/cgi-bin/
+  ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
+  
+  Alias /pipermail /var/lib/mailman/archives/public
+  <Directory /var/lib/mailman/archives/public>
+    AllowOverride Options
+    Options FollowSymLinks
+  </Directory>
+  
+  Alias /images/mailman /usr/share/images/mailman
+  <Location /images/mailman>
+    order allow,deny
+    allow from all
+  </Location>
+  
+  RewriteEngine on  
+  RewriteRule ^/$ https://%{HTTP_HOST}/cgi-bin/mailman/listinfo [R=301]
+  
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/30-vhosts-projects.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/30-vhosts-projects.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/30-vhosts-projects.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,16 @@
+#
+# <project>.forge.domain hosts
+#
+# This is used when FusionForge has DNS delegation
+<VirtualHost *:80>
+  Include /etc/gforge/httpd.conf.d/vhost-projects.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-off.inc
+</VirtualHost>
+<VirtualHost *:443>
+  Include /etc/gforge/httpd.conf.d/vhost-projects.inc
+  Include /etc/gforge/httpd.conf.d/block-trace.inc
+  Include /etc/gforge/httpd.conf.d/log.inc
+  Include /etc/gforge/httpd.conf.d/ssl-on.inc
+</VirtualHost>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/40-vhosts-extra.conf
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/40-vhosts-extra.conf	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/40-vhosts-extra.conf	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,2 @@
+# Other virtual hosts, as requested by users
+Include /var/lib/gforge/etc/httpd.vhosts

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/auth-main.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/auth-main.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/auth-main.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+# HTTP Basic Auth hook for the forge itself
+
+order allow,deny
+allow from all

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/auth-projects.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/auth-projects.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/auth-projects.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+# HTTP Basic Auth hook for the project vhosts
+
+order allow,deny
+allow from all

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/block-trace.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/block-trace.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/block-trace.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+RewriteEngine on
+RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
+RewriteRule .* - [F]

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/log.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/log.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/log.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,6 @@
+# Custom logging
+
+LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
+CustomLog "|{cronolog_path} {var_log_gforge}/%Y/%m/%d/gforge.log" gforge
+LogFormat "%{Host}i %h %l %u %t %{SSL_PROTOCOL}x:%{SSL_CIPHER}x \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedvhssl
+CustomLog "|{cronolog_path} {var_log_gforge}/%Y/%m/%d/awstats.log" combinedvhssl

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-fckeditor.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-fckeditor.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-fckeditor.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,7 @@
+Alias /fckeditor/ /usr/share/fckeditor/
+<Directory "/usr/share/fckeditor/">
+  Options Indexes MultiViews FollowSymLinks
+  AllowOverride None
+  Order allow,deny
+  allow from all
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-generic.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-generic.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-generic.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,10 @@
+ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /usr/local/share/gforge/plugins/$1/cgi-bin/$2
+
+Alias /anonscm/ /var/local/lib/gforge/chroot/scmrepos/
+
+<DirectoryMatch /var/local/lib/gforge/chroot/scmrepos/[^/]*>
+  Options -Indexes
+</DirectoryMatch>
+<DirectoryMatch /var/local/lib/gforge/chroot/scmrepos/[^/]*/.*>
+  Options +Indexes
+</DirectoryMatch>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-mediawiki.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-mediawiki.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-mediawiki.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,4 @@
+RedirectMatch 301 ^(/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
+AliasMatch ^/plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php /usr/local/share/gforge/www/plugins/mediawiki/index.php
+AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) /var/local/lib/gforge/plugins/mediawiki/wikidata/$1/images/$2
+AliasMatch ^/plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/skins/(.*) /usr/share/mediawikiskins/$2

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmbzr.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmbzr.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmbzr.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,8 @@
+<Proxy http://127.0.0.1:8081/*>
+  Allow from all
+</Proxy>
+
+<Location /scm/loggerhead/>
+  ProxyPass http://127.0.0.1:8081/
+  ProxyPassReverse http://127.0.0.1:8081/
+</Location>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmdarcs.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmdarcs.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmdarcs.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+<Directory /usr/local/share/gforge/plugins/scmdarcs/cgi-bin>
+  SetEnv DARCSWEB_CONFPATH /etc/gforge/plugins/scmdarcs/
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmgit.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmgit.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/plugin-scmgit.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,3 @@
+<Directory /usr/local/share/gforge/plugins/scmgit/cgi-bin>
+  SetEnv GITWEB_CONFIG /etc/gforge/plugins/scmgit/gitweb.conf
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/projects-in-mainvhost.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/projects-in-mainvhost.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/projects-in-mainvhost.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,11 @@
+# This is used instead of *.forgename vhosts only
+
+# Project home pages are in a virtual /www/<group> location
+AliasMatch ^/www/([^/]*)/(.*) /var/local/lib/gforge/chroot/home/groups/$1/htdocs/$2
+ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /var/local/lib/gforge/chroot/home/groups/$1/cgi-bin/$2
+<Directory /var/local/lib/gforge/chroot/home/groups>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /etc/gforge/httpd.conf.d/auth.projects.inc
+</Directory>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/secrets.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/secrets.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/secrets.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,20 @@
+#RequestHeader unset GForgeDbhost
+#RequestHeader append GForgeDbhost {db_host}
+
+RequestHeader unset GForgeDbport
+RequestHeader append GForgeDbport {db_port}
+
+RequestHeader unset GForgeDbname
+RequestHeader append GForgeDbname {db_name}
+
+RequestHeader unset GForgeDbuser
+RequestHeader append GForgeDbuser {db_user}
+
+RequestHeader unset GForgeDbpasswd
+RequestHeader append GForgeDbpasswd {db_password}
+
+RequestHeader unset GForgeLdapPasswd
+RequestHeader append GForgeLdapPasswd {ldap_web_add_password}
+
+RequestHeader unset GForgeJabberPasswd
+RequestHeader append GForgeJabberPasswd {sys_jabber_pass}

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-off.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-off.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-off.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,8 @@
+<IfModule apache_ssl.c>
+  SSLDisable
+</IfModule>
+
+# Uncomment the following lines to redirect HTTP to HTTPS globally:
+
+#RewriteEngine On
+#RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-on.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-on.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/ssl-on.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,23 @@
+<IfModule mod_ssl.c>
+  SSLEngine on
+  
+  SSLCertificateFile {sys_sslcrt}
+  SSLCertificateKeyFile {sys_sslkey}
+  {sys_ssl_apache_extra_cmd}
+  
+  <Files ~ "\.(cgi|shtml)$">
+    SSLOptions +StdEnvVars
+  </Files>
+  
+  <Directory "/usr/lib/cgi-bin">
+    SSLOptions +StdEnvVars
+  </Directory>
+  
+  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+</IfModule>
+
+<IfModule apache_ssl.c>
+  SSLEnable
+  
+  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
+</IfModule>

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-list.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-list.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-list.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1 @@
+ServerName {lists_host}

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-main.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-main.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-main.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,29 @@
+ServerName {domain_name}
+ServerAlias www.{domain_name}
+ServerAdmin {server_admin}
+DocumentRoot /usr/local/share/gforge/www
+DirectoryIndex index.html index.php
+
+<IfModule mod_userdir.c>
+  UserDir disabled
+</IfModule>
+
+<Directory /usr/local/share/gforge/www>
+  Include /etc/gforge/httpd.conf.d/secrets.inc
+</Directory>
+
+<Location /projects>
+  ForceType application/x-httpd-php
+</Location>
+<Location /users>
+  ForceType application/x-httpd-php
+</Location>
+
+Alias /images/ /usr/local/share/gforge/www/images/
+
+Include /etc/gforge/httpd.conf.d/plugin-*.inc
+
+# For FusionForge without DNS delegation, uncomment this
+# and remove 30-vhosts-projects.conf
+# Include /etc/gforge/httpd.conf.d/projects-in-mainvhost.inc
+  

Added: trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-projects.inc
===================================================================
--- trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-projects.inc	                        (rev 0)
+++ trunk/gforge/etc/httpd.conf.d-usrlocal/vhost-projects.inc	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,25 @@
+# per-project vhost content
+
+ServerName siteadmin.{domain_name}
+ServerAlias *.{domain_name}
+DirectoryIndex index.html index.php index.htm
+
+# This is magic for virtual hosting!
+UseCanonicalName Off
+
+VirtualDocumentRoot /var/local/lib/gforge/chroot/home/groups/%1/htdocs
+VirtualScriptAlias /var/local/lib/gforge/chroot/home/groups/%1/cgi-bin
+
+SetEnvIf Host "(.*)\.{domain_name}" AWSTATS_FORCE_CONFIG=group-$1
+
+php_admin_value default_charset "UTF-8"
+php_admin_value include_path "/etc/gforge/custom:/etc/gforge:/usr/local/share/gforge:/usr/local/share/gforge/www/include:."
+
+Alias /themes-gforge/ /usr/local/share/gforge/www/themes/
+
+<Directory /var/local/lib/gforge/chroot/home/groups>
+  Options Indexes FollowSymlinks
+  AllowOverride All
+  
+  Include /etc/gforge/httpd.conf.d/auth.projects.inc
+</Directory>

Added: trunk/gforge/utils/manage-apache-config.sh
===================================================================
--- trunk/gforge/utils/manage-apache-config.sh	                        (rev 0)
+++ trunk/gforge/utils/manage-apache-config.sh	2010-06-16 15:24:01 UTC (rev 10038)
@@ -0,0 +1,51 @@
+#! /bin/sh -e
+
+if [ -e gforge/etc/httpd.conf.d ] ; then        # We're in the parent dir
+    cd gforge/etc
+elif [ -e etc/httpd.conf.d ] ; then             # probably in gforge/ (or a renamed gforge/)
+    cd etc
+elif [ -e ../etc/httpd.conf.d ] ; then          # possibly in gforge/etc
+    cd ../etc
+else
+    echo "Couldn't find Apache config directory..."
+    exit 1
+fi
+
+mkdir -p httpd.conf.d-fhs
+for i in httpd.conf.d/*.inc httpd.conf.d/*.conf ; do
+    sed -e 's,{core/config_path},/etc/gforge,g' \
+	-e 's,{core/source_path},/usr/share/gforge,g' \
+	-e 's,{core/data_path},/var/lib/gforge,g' \
+	-e 's,{core/chroot},/var/lib/gforge/chroot,g' \
+	-e 's,{core/custom_path},/etc/gforge/custom,g' \
+	-e 's,{core/url_prefix},/,g' \
+	-e 's,{core/groupdir_prefix},/var/lib/gforge/chroot/home/groups,g' \
+	-e 's,{mediawiki/src_path},/usr/share/mediawiki,g' \
+	$i > httpd.conf.d-fhs/$(basename $i)
+done
+
+mkdir -p httpd.conf.d-opt
+for i in httpd.conf.d/*.inc httpd.conf.d/*.conf ; do
+    sed -e 's,{core/config_path},/opt/fusionforge/etc,g' \
+	-e 's,{core/source_path},/opt/fusionforge,g' \
+	-e 's,{core/data_path},/opt/fusionforge/data,g' \
+	-e 's,{core/chroot},/opt/fusionforge/data/chroot,g' \
+	-e 's,{core/custom_path},/opt/fusionforge/etc/custom,g' \
+	-e 's,{core/url_prefix},/,g' \
+	-e 's,{core/groupdir_prefix},/opt/fusionforge/data/chroot/home/groups,g' \
+	-e 's,{mediawiki/src_path},/usr/share/mediawiki,g' \
+	$i > httpd.conf.d-opt/$(basename $i)
+done
+
+mkdir -p httpd.conf.d-usrlocal
+for i in httpd.conf.d/*.inc httpd.conf.d/*.conf ; do
+    sed -e 's,{core/config_path},/etc/gforge,g' \
+	-e 's,{core/source_path},/usr/local/share/gforge,g' \
+	-e 's,{core/data_path},/var/local/lib/gforge,g' \
+	-e 's,{core/chroot},/var/local/lib/gforge/chroot,g' \
+	-e 's,{core/custom_path},/etc/gforge/custom,g' \
+	-e 's,{core/url_prefix},/,g' \
+	-e 's,{core/groupdir_prefix},/var/local/lib/gforge/chroot/home/groups,g' \
+	-e 's,{mediawiki/src_path},/usr/share/mediawiki,g' \
+	$i > httpd.conf.d-usrlocal/$(basename $i)
+done


Property changes on: trunk/gforge/utils/manage-apache-config.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Fusionforge-commits mailing list