1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule auth_gforge_module modules/mod_auth_gforge.so
#
# Use name-based virtual hosting.
#
NameVirtualHost 192.168.100.100:80
#NameVirtualHost 192.168.100.100:443
#
# Primary GForge vhost
#
<VirtualHost 192.168.100.100:80>
ServerName gforge.company.com
# RewriteEngine on
# RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R=permanent]
#</VirtualHost>
#<VirtualHost 192.168.100.100:443>
ServerName gforge.company.com
ServerAdmin webmaster@gforge.company.com
DocumentRoot /opt/gforge/gforge/www
ErrorDocument 404 /404.php
php_value include_path ".:/opt/gforge/gforge/:/opt/gforge/gforge/www/include/:/etc/gforge/"
php_value register_globals On
#php_value output_handler ""
php_value default_charset "UTF-8"
#SSLEngine On
#SSLCertificateFile /etc/httpd/ssl/gforge.company.com.crt
#SSLCertificateKeyFile /etc/httpd/ssl/gforge.company.com.pem
#<Files projects>
#SetOutputFilter PHP
#SetInputFilter PHP
#AcceptPathInfo on
#</Files>
#<Files users>
#SetOutputFilter PHP
#SetInputFilter PHP
#AcceptPathInfo on
#</Files>
#<Files *.php>
# SetOutputFilter PHP
# SetInputFilter PHP
# AcceptPathInfo On
# LimitRequestBody 2097152
#</Files>
#
# LOCATION may have to be used instead of FILES for some installs
#
<Location /projects>
ForceType application/x-httpd-php
</Location>
<Location /users>
ForceType application/x-httpd-php
</Location>
DirectoryIndex index.php
</VirtualHost>
#
# Lists vhosts - where mailman lives
#
<VirtualHost 192.168.100.100:80>
ServerName lists.gforge.company.com
ServerAdmin mailman@lists.gforge.company.com
DocumentRoot /opt/gforge/mailman
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
Alias /pipermail/ /var/lib/mailman/archives/public/
#ScriptAlias /mailman/ /var/mailman/cgi-bin/
#Alias /pipermail/ /var/mailman/archives/public/
DirectoryIndex index.php index.cgi index.html index.htm
</VirtualHost>
#
# CVS Vhost - allows viewing of CVSWeb for each project
# Only necessary if CVS is on separate machine
#
#<VirtualHost 192.168.100.100:80>
#ServerName cvs.gforge.company.com
#ServerAdmin webmaster@cvs.gforge.company.com
#DocumentRoot /opt/gforge/cvs
#DirectoryIndex index.php index.cgi
#</VirtualHost>
#
# *.gforge.company.com vhosts
# Each project can have its own vhost
#
# WARNING - security is degraded by having this
# on the same machine as the primary GForge
#
#<VirtualHost 192.168.100.100:80>
# ServerName projects.gforge.company.com
# ServerAlias *.projects.gforge.company.com
# DocumentRoot /home/groups
# VirtualDocumentRoot /home/groups/%1/htdocs
# VirtualScriptAlias /home/groups/%1/cgi-bin
# <Directory /opt/gforge/homedirs/groups>
# Options Indexes
#
# WARNING - turning on php will allow any user
# to upload a php file to your server, and include
# the gforge local.inc file and get your password to
# connect to the database and have total control.
#
# php_flag engine off
# AllowOverride None
# order allow,deny
# allow from all
# </Directory>
# DirectoryIndex index.html index.htm
#</VirtualHost>
#
# Subversion vhost using mod_auth_gforge
#
<VirtualHost 192.168.100.100:80>
ServerName svn.gforge.company.com
# RewriteEngine on
# RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R=permanent]
#</VirtualHost>
#<VirtualHost 192.168.100.100:443>
# ServerName svn.gforge.company.com
ServerAdmin webmaster@svn.gforge.company.com
DocumentRoot /opt/gforge/svn
DAVLockDB /tmp/svn-DAVLockDB
# RewriteEngine on
# #RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R=permanent]
# RewriteRule ^/svn$ /index.php [PT]
# RewriteRule ^/svn/$ /index.php [PT]
# RewriteRule ^/svn/index.html$ /index.php [PT]
# RewriteRule ^/index.htm$ /index.php [PT]
# RewriteRule ^/index.html$ /index.php [PT]
# SSLEngine On
# SSLCertificateFile /etc/httpd/ssl/gforge.company.com.crt
# SSLCertificateKeyFile /etc/httpd/ssl/gforge.company.com.pem
<Location /svn>
#GforgeAuthzEnabled on
GforgeSysPath /svnroot
GforgeGroupsRoot /svn
GforgeAnonClause "groups.enable_anonscm >= '1'"
GforgeReadClause "cvs_flags >= '0'"
GforgeWriteClause "cvs_flags >= '1'"
DAV svn
SVNParentPath /svnroot
SVNAutoversioning on
SVNIndexXSLT /svnindex.xsl
AuthType basic
AuthName "Subversion User Authentication"
#Auth_PG_host localhost
Auth_PG_database gforge
Auth_PG_port 5432
Auth_PG_user gforge
Auth_PG_pwd gforge
Auth_PG_pwd_table users
Auth_PG_pwd_field user_pw
Auth_PG_uid_field user_name
Auth_PG_grp_table groups
Auth_PG_gid_field unix_group_name
Auth_PG_encrypted on
Auth_PG_hash_type MD5
Auth_PG_authoritative on
Require valid-user
php_flag engine off
</Location>
DirectoryIndex index.php
</VirtualHost>
#
# webDAV editing of project vhosts
#
#<VirtualHost 192.168.100.100:80>
# ServerName edit.gforge.company.com
# RewriteEngine on
# RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R=permanent]
#</VirtualHost>
#<VirtualHost 192.168.100.100:443>
# ServerName edit.gforge.company.com
# ServerAdmin webmaster@edit.gforge.company.com
# DocumentRoot /opt/gforge/homedirs
# DAVLockDB /tmp/projvhost-DAVLockDB
# # Needed for windows web folders
# DavDepthInfinity on
# SSLEngine On
# SSLCertificateFile /etc/httpd/ssl/gforge.company.com.crt
# SSLCertificateKeyFile /etc/httpd/ssl/gforge.company.com.pem
# <Location />
# GforgeSysPath /opt/gforge/homedirs
# GforgeGroupsRoot /groups
# GforgeUsersRoot /users
# DAV On
# AuthType basic
# AuthName "Gforge User Authentication"
# Auth_default_access_type DECLINE
#
# Auth_PG_host localhost
# Auth_PG_database gforge
# Auth_PG_port 5432
# Auth_PG_user gforge
#
# Auth_PG_pwd XXXXXXX
# Auth_PG_pwd_table users
# Auth_PG_pwd_field user_pw
# Auth_PG_uid_field user_name
#
# Auth_PG_grp_table groups
# Auth_PG_gid_field unix_group_name
#
# Auth_PG_encrypted on
# Auth_PG_hash_type MD5
# Auth_PG_authoritative on
# Auth_PG_cache_passwords on
#
# Require valid-user
# </Location>
#DirectoryIndex index.htm
#</VirtualHost>
|