#
# Upload host
#
<VirtualHost {ip_address}:80>
  ServerName {webdav_host}
  DocumentRoot {var_lib_gforge}/upload
  DAVLockDB     /var/lib/gforge/tmp/DAVLockDB
  <Location />
          GforgeSysPath 	{var_lib_forge}/upload
          GforgeUsersRoot       /users
          GforgeGroupsRoot      /groups
          DAV On
          AuthType              basic
          AuthName              "Gforge User Authentication"

          Auth_PG_host          {db_host}
          Auth_PG_database      {db_name}
          Auth_PG_port          5432
          Auth_PG_user          {db_user}
          Auth_PG_pwd           {db_password}
          Auth_PG_pwd_table     users
          Auth_PG_pwd_field     unix_pw
          Auth_PG_uid_field     user_name
          Auth_PG_encrypted     on
          Auth_PG_hash_type     CRYPT
          Auth_PG_authoritative on

          Require valid-user
  </Location>

  LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
  CustomLog "|/usr/bin/cronolog /var/log/gforge/%Y/%m/%d/gforge.log" gforge
  # Ensure that we don't try to use SSL on SSL Servers
  <IfModule apache_ssl.c>
    SSLDisable
  </IfModule>
</VirtualHost>

