4 NameVirtualHost 10.GF.OR.GE:443
11 NameVirtualHost 10.GF.OR.GE:80
12 # This is magic for virtual hosting!
16 ## block web access to CVS directories.
22 <Directory /path/to/gforge/www>
23 Options Indexes FollowSymlinks
27 php_admin_value include_path "/path/to/gforge/etc/custom:/etc/gforge:/path/to/gforge:/path/to/gforge/www/include:."
28 php_admin_value default_charset "UTF-8"
29 php_flag register_globals "Off"
34 php_admin_value error_reporting 2047
36 # don't echo error to user
37 php_admin_value display_errors 0
39 # do log the errors in ErrorLog! why even ask?
40 php_admin_value log_errors 1
42 # don't report to syslog! apparently you can't undef error_log to force it to go to
43 # apache's error_log. So make sure error_log isn't defined in php.ini (/etc/php5/apache/php.ini)
44 ##php_admin_value error_log ''
47 <VirtualHost 10.GF.OR.GE:80>
48 ServerName gforge.company.com
49 ServerAlias www.gforge.company.com
50 ServerAdmin webmaster@gforge.company.com
51 DocumentRoot /path/to/gforge/www
55 # Apache 2 apache2-mpm-perchild
56 #AssignUserID www-gforge www-gforge
57 # Apache 2 but this is not the same
58 #<IfModule mod_suexec.c>
59 # SuexecUserGroup www-gforge www-gforge
61 Alias /images/ /path/to/gforge/www/images/
62 DirectoryIndex index.html index.php
63 <IfModule mod_userdir.c>
67 php_admin_value default_charset "UTF-8"
69 <Directory /path/to/gforge/www>
70 Include /etc/httpd.secrets
73 ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /usr/share/gforge/plugins/$1/cgi-bin/$2
75 # Projects and Users script
77 ForceType application/x-httpd-php
80 ForceType application/x-httpd-php
83 ForceType application/x-httpd-php
87 ErrorDocument 404 /404.php
88 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
89 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
91 # GForge without the DNS delegation
92 # Project home pages are in a virtual /www/<group> location
93 # AliasMatch ^/www/([^/]*)/(.*) /home/groups/$1/htdocs/$2
94 # ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /home/groups/$1/cgi-bin/$2
95 # <Directory /home/groups>
96 # Options Indexes FollowSymlinks
102 # Ensure that we don't try to use SSL on SSL Servers
103 <IfModule apache_ssl.c>
109 <VirtualHost 10.GF.OR.GE:443>
110 ServerName gforge.company.com
111 ServerAlias www.gforge.company.com
112 ServerAdmin webmaster@gforge.company.com
116 # Apache 2 apache2-mpm-perchild
117 #AssignUserID www-gforge www-gforge
119 <IfModule mod_suexec.c>
120 SuexecUserGroup www-gforge www-gforge
122 DocumentRoot /path/to/gforge/www
123 Alias /images/ /path/to/gforge/www/images/
124 DirectoryIndex index.html index.php
125 <IfModule mod_userdir.c>
129 php_admin_value default_charset "UTF-8"
131 <Directory /path/to/gforge/www>
132 Include /etc/httpd.secrets
135 ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*) /usr/share/gforge/plugins/$1/cgi-bin/$2
137 # Projects and Users script
139 ForceType application/x-httpd-php
142 ForceType application/x-httpd-php
145 ForceType application/x-httpd-php
149 ErrorDocument 404 /404.php
150 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
151 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
155 SSLCertificateFile /etc/apache2/ssl/apache.pem
156 SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
157 <Files ~ "\.(cgi|shtml)$">
158 SSLOptions +StdEnvVars
160 <Directory "/usr/lib/cgi-bin">
161 SSLOptions +StdEnvVars
163 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
166 <IfModule apache_ssl.c>
168 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
175 <Directory /path/to/gforge/scm>
176 Options Indexes FollowSymlinks
180 php_admin_value include_path "/path/to/gforge/etc/custom:/etc/gforge:/path/to/gforge:/path/to/gforge/www/include:."
181 php_admin_value default_charset "UTF-8"
185 <VirtualHost 10.GF.OR.GE:80>
186 ServerName cvs.gforge.company.com
187 DocumentRoot /path/to/gforge/scm
188 Alias /images/ /path/to/gforge/www/images/
189 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
190 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
191 # Ensure that we don't try to use SSL on SSL Servers
192 <IfModule apache_ssl.c>
198 <VirtualHost 10.GF.OR.GE:443>
199 ServerName cvs.gforge.company.com
200 DocumentRoot /path/to/gforge/scm
201 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
202 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
206 SSLCertificateFile /etc/apache2/ssl/apache.pem
207 SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
208 <Files ~ "\.(cgi|shtml)$">
209 SSLOptions +StdEnvVars
211 <Directory "/usr/lib/cgi-bin">
212 SSLOptions +StdEnvVars
214 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
217 <IfModule apache_ssl.c>
226 <VirtualHost 10.GF.OR.GE:80>
227 ServerName download.gforge.company.com
228 DocumentRoot /path/to/var/lib/gforge/download
229 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
230 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
231 # Ensure that we don't try to use SSL on SSL Servers
232 <IfModule apache_ssl.c>
241 <VirtualHost 10.GF.OR.GE:80>
242 ServerName lists.gforge.company.com
243 AddHandler cgi-script .cgi
245 ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
247 Alias /pipermail /var/lib/mailman/archives/public
248 <Directory /var/lib/mailman/archives/public>
249 AllowOverride Options
250 Options FollowSymLinks
253 Alias /images/mailman /usr/share/images/mailman
254 <Location /images/mailman>
259 RedirectMatch permanent ^/$ http://lists.gforge.company.com/mailman/listinfo
260 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
261 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
262 # Ensure that we don't try to use SSL on SSL Servers
263 <IfModule apache_ssl.c>
271 <VirtualHost 10.GF.OR.GE:443>
272 ServerName lists.gforge.company.com
273 AddHandler cgi-script .cgi
277 SSLCertificateFile /etc/apache2/ssl/apache.pem
278 SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
279 <Files ~ "\.(cgi|shtml)$">
280 SSLOptions +StdEnvVars
282 <Directory "/usr/lib/cgi-bin">
283 SSLOptions +StdEnvVars
285 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
288 <IfModule apache_ssl.c>
292 ScriptAlias /mailman/ /var/lib/mailman/cgi-bin/
294 Alias /pipermail /var/lib/mailman/archives/public
295 <Directory /var/lib/mailman/archives/public>
296 AllowOverride Options
297 Options FollowSymLinks
300 Alias /images/mailman /usr/share/images/mailman
301 <Location /images/mailman>
306 RedirectMatch permanent ^/$ https://lists.gforge.company.com/mailman/listinfo
307 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
308 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
314 <VirtualHost 10.GF.OR.GE:80>
315 ServerName gforge.company.com
316 ServerAlias *.gforge.company.com
317 VirtualDocumentRoot /home/groups/%1/htdocs
318 VirtualScriptAlias /home/groups/%1/cgi-bin
319 DirectoryIndex index.html index.php
320 php_admin_value default_charset "UTF-8"
321 php_admin_value include_path "/path/to/gforge/etc/custom:/etc/gforge:/path/to/gforge:/path/to/gforge/www/include:."
322 Alias /themes-gforge/ /usr/share/gforge/www/themes/
323 <Directory /home/groups>
324 Options Indexes FollowSymlinks
329 LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
330 CustomLog "|/usr/bin/cronolog /path/to/var/log/gforge/%Y/%m/%d/gforge.log" gforge
331 # Ensure that we don't try to use SSL on SSL Servers
332 <IfModule apache_ssl.c>