Listen 443 NameVirtualHost 10.GF.OR.GE:443 Listen 80 order allow,deny deny from all NameVirtualHost 10.GF.OR.GE:80 # This is magic for virtual hosting! UseCanonicalName Off ## block web access to CVS directories. deny from all # # Main host # Options Indexes FollowSymlinks AllowOverride All order allow,deny allow from all php_admin_value include_path "/path/to/gforge/etc/custom:/etc/gforge:/path/to/gforge:/path/to/gforge/www/include:." php_admin_value default_charset "UTF-8" php_flag register_globals "Off" ### ### safe PHP settings ## # report E_ALL errors php_admin_value error_reporting 2047 # don't echo error to user php_admin_value display_errors 0 # do log the errors in ErrorLog! why even ask? php_admin_value log_errors 1 # don't report to syslog! apparently you can't undef error_log to force it to go to # apache's error_log. So make sure error_log isn't defined in php.ini (/etc/php5/apache/php.ini) ##php_admin_value error_log '' # HTTP ServerName gforge.company.com ServerAlias www.gforge.company.com ServerAdmin webmaster@gforge.company.com DocumentRoot /path/to/gforge/www # Apache 1.3 #User www-gforge #Group www-gforge # Apache 2 apache2-mpm-perchild #AssignUserID www-gforge www-gforge # Apache 2 but this is not the same # # SuexecUserGroup www-gforge www-gforge # Alias /images/ /path/to/gforge/www/images/ DirectoryIndex index.html index.php UserDir disabled php_admin_value default_charset "UTF-8" Include /etc/httpd.secrets ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /usr/share/gforge/plugins/$1/cgi-bin/$2 # Projects and Users script ForceType application/x-httpd-php ForceType application/x-httpd-php ForceType application/x-httpd-php # 404 Error document ErrorDocument 404 /404.php LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge # GForge without the DNS delegation # Project home pages are in a virtual /www/ location # AliasMatch ^/www/([^/]*)/(.*) /home/groups/$1/htdocs/$2 # ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /home/groups/$1/cgi-bin/$2 # # Options Indexes FollowSymlinks # AllowOverride All # order allow,deny # allow from all # # Ensure that we don't try to use SSL on SSL Servers SSLDisable # HTTPS ServerName gforge.company.com ServerAlias www.gforge.company.com ServerAdmin webmaster@gforge.company.com # Apache 1.3 #User www-gforge #Group www-gforge # Apache 2 apache2-mpm-perchild #AssignUserID www-gforge www-gforge # Apache 2 SuexecUserGroup www-gforge www-gforge DocumentRoot /path/to/gforge/www Alias /images/ /path/to/gforge/www/images/ DirectoryIndex index.html index.php UserDir disabled php_admin_value default_charset "UTF-8" Include /etc/httpd.secrets ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /usr/share/gforge/plugins/$1/cgi-bin/$2 # Projects and Users script ForceType application/x-httpd-php ForceType application/x-httpd-php ForceType application/x-httpd-php # 404 Error document ErrorDocument 404 /404.php LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem SSLCertificateKeyFile /etc/apache2/ssl/apache.pem SSLOptions +StdEnvVars SSLOptions +StdEnvVars SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown SSLEnable SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown # # SCM host # Options Indexes FollowSymlinks AllowOverride All order allow,deny allow from all php_admin_value include_path "/path/to/gforge/etc/custom:/etc/gforge:/path/to/gforge:/path/to/gforge/www/include:." php_admin_value default_charset "UTF-8" # SCM HTTP vhost ServerName cvs.gforge.company.com DocumentRoot /path/to/gforge/scm Alias /images/ /path/to/gforge/www/images/ LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge # Ensure that we don't try to use SSL on SSL Servers SSLDisable # SCM HTTP SSL vhost ServerName cvs.gforge.company.com DocumentRoot /path/to/gforge/scm LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem SSLCertificateKeyFile /etc/apache2/ssl/apache.pem SSLOptions +StdEnvVars SSLOptions +StdEnvVars SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown SSLEnable # # Download host # ServerName download.gforge.company.com DocumentRoot /path/to/var/lib/gforge/download LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge # Ensure that we don't try to use SSL on SSL Servers SSLDisable # # List host # # HTTP ServerName lists.gforge.company.com AddHandler cgi-script .cgi ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/ Alias /pipermail /var/lib/mailman/archives/public AllowOverride Options Options FollowSymLinks Alias /images/mailman /usr/share/images/mailman order allow,deny allow from all RedirectMatch permanent ^/$ http://lists.gforge.company.com/mailman/listinfo LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge # Ensure that we don't try to use SSL on SSL Servers SSLDisable # # List host # # HTTPS ServerName lists.gforge.company.com AddHandler cgi-script .cgi SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem SSLCertificateKeyFile /etc/apache2/ssl/apache.pem SSLOptions +StdEnvVars SSLOptions +StdEnvVars SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown SSLEnable ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/ Alias /pipermail /var/lib/mailman/archives/public AllowOverride Options Options FollowSymLinks Alias /images/mailman /usr/share/images/mailman order allow,deny allow from all RedirectMatch permanent ^/$ https://lists.gforge.company.com/mailman/listinfo LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge # # * hosts # ServerName gforge.company.com ServerAlias *.gforge.company.com VirtualDocumentRoot /home/groups/%1/htdocs VirtualScriptAlias /home/groups/%1/cgi-bin DirectoryIndex index.html index.php php_admin_value default_charset "UTF-8" php_admin_value include_path "/path/to/gforge/etc/custom:/etc/gforge:/path/to/gforge:/path/to/gforge/www/include:." Alias /themes-gforge/ /usr/share/gforge/www/themes/ Options Indexes FollowSymlinks AllowOverride All order allow,deny allow from all LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge # Ensure that we don't try to use SSL on SSL Servers SSLDisable