gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/etc gforge.conf.example, NONE, 1.1 httpd.conf.ex


From: cbayle
Subject: [Gforge-commits] gforge/etc gforge.conf.example, NONE, 1.1 httpd.conf.example, NONE, 1.1
Date: Thu, 15 Jan 2004 15:55:39 -0600

Update of /cvsroot/gforge/gforge/etc
In directory db.perdue.net:/tmp/cvs-serv2105/etc

Added Files:
        gforge.conf.example httpd.conf.example 
Log Message:
Example conf files,
etc/httpd.conf.example is generated with ./setup -example
from etc/gforge.conf.example


--- NEW FILE: gforge.conf.example ---
system_name=Gforge
domain_name=gforge.company.com
address@hidden
db_host=localhost
db_name=alexandria
db_user=www
db_password=
ip_address=10.GF.OR.GE
cvs_host=cvs.gforge.company.com
shell_host=shell.gforge.company.com
users_host=users.gforge.company.com
lists_host=lists.gforge.company.com
docs_host=gfdocs.gforge.company.com
jabber_host=jabber.gforge.company.com
download_host=download.gforge.company.com
upload_host=upload.gforge.company.com
statsadmin_groupid=2
newsadmin_groupid=3
peerrating_groupid=4
admin_login=admin
admin_password=
skill_list=Ada;C;C++;HTML;LISP;Perl;PHP;Python;SQL
default_trove_cat=18
ldap_host=ldap.gforge.company.com
ldap_base_dn=dc=gforge,dc=company,dc=com
ldap_web_add_password=
cgidir=/al/gforge/gforge/utils
cronolog_path=/usr/bin/cronolog
sys_path_to_jpgraph=/path/to/jpgraph
sys_path_to_cvsweb=/path/to/cvsweb
gforge_chroot=
gforge_etc=/etc
groupdir=/home/groups
homedir=/home
uploaddir=/path/to/uploads/
sys_jabber_pass=
usr_share_gforge=/path/to/gforge
var_lib_gforge=/var/lib/gforge
var_log_gforge=/var/log/gforge
sys_show_source=0
sys_force_login=0
sys_session_key=foobar
sys_theme=gforge
sys_lang=English
sys_use_ldap=0
sys_use_jabber=0
sys_use_auth_ldap=1
sys_ldap_auth_host=localhost
sys_ldap_auth_port=389
sys_ldap_auth_version=3
sys_ldap_auth_dn=dc=gforge,dc=company,dc=com
sys_use_cvs=true
sys_use_tracker=true
sys_use_forum=true
sys_use_pm=true
sys_use_docman=true
sys_use_news=true
sys_use_mail=true
sys_use_survey=true
sys_use_file=true
sys_use_ftp=true
sys_use_trove=true
sys_use_snippet=true
sys_project_reg_restricted=true

--- NEW FILE: httpd.conf.example ---
<Files .htaccess>
  order allow,deny
  deny from all
</Files>

<IfModule mod_ssl.c>
  Listen 80
  Listen 443
</IfModule>

NameVirtualHost 10.GF.OR.GE:80
NameVirtualHost 10.GF.OR.GE:443

#
# Main host
#
<Directory /path/to/gforge/www>
  Options Indexes FollowSymlinks
  AllowOverride All
  order allow,deny
  allow from all
  php_admin_value include_path "/path/to/gforge:/path/to/gforge/www/include:."
  php_admin_value default_charset "UTF-8"
</Directory>

# HTTP
<VirtualHost 10.GF.OR.GE:80>
  ServerName gforge.company.com
  ServerAlias www.gforge.company.com
  ServerAdmin address@hidden
  DocumentRoot /path/to/gforge/www
  DirectoryIndex index.html index.php
  <IfModule mod_userdir.c>
    UserDir disabled
  </IfModule>

  php_admin_value default_charset "UTF-8"

  <Directory /path/to/gforge/www>
    Include   /etc/httpd.secrets
  </Directory>

  # Debian Sourceforge without the DNS delegation
  # Project home pages are in a virtual /www/<group> location
  AliasMatch ^/www/([^/]*)/(.*) /home/groups/$1/htdocs/$2
  ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /home/groups/$1/cgi-bin/$2
  <Directory /home/groups>
    Options Indexes FollowSymlinks
      AllowOverride All
      order allow,deny
      allow from all
  </Directory>

  # Projects and Users script
  <Location /projects>
    ForceType application/x-httpd-php
  </Location>
  <Location /users>
    ForceType application/x-httpd-php
  </Location>

  # This for cvsweb 
  ScriptAlias /cgi-bin/ {usr_lib_gforge}/cgi-bin/

  # 404 Error document
  ErrorDocument 404 /404.php
  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>

# HTTPS
<VirtualHost 10.GF.OR.GE:443>
  ServerName gforge.company.com
  ServerAlias www.gforge.company.com
  ServerAdmin address@hidden
  DocumentRoot /path/to/gforge/www
  DirectoryIndex index.html index.php
  <IfModule mod_userdir.c>
    UserDir disabled
  </IfModule>

  php_admin_value default_charset "UTF-8"

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLCertificateFile /etc/apache/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/apache/ssl.key/server.key
    <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>

  <Directory /path/to/gforge/www>
    Include   /etc/httpd.secrets
  </Directory>

  # Projects an Users script
  <Location /projects>
    ForceType application/x-httpd-php
  </Location>
  <Location /users>
    ForceType application/x-httpd-php
  </Location>

  # This for cvsweb 
  ScriptAlias /cgi-bin/ {usr_lib_gforge}/cgi-bin/

  # 404 Error document
  ErrorDocument 404 /404.php
  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
</VirtualHost>

#
# CVS host
#
<Directory /path/to/gforge/cvs>
  Options Indexes FollowSymlinks
  AllowOverride All
  order allow,deny
  allow from all
  php_admin_value include_path "/path/to/gforge:/path/to/gforge/www/include:."
  php_admin_value default_charset "UTF-8"
</Directory>

<VirtualHost 10.GF.OR.GE:80>
  ServerName cvs.gforge.company.com
  DocumentRoot /path/to/gforge/cvs
  ScriptAlias /cgi-bin/ {usr_lib_gforge}/cgi-bin/
  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>

<VirtualHost 10.GF.OR.GE:443>
  ServerName cvs.gforge.company.com

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLCertificateFile /etc/apache/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/apache/ssl.key/server.key
    <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
  </IfModule>

  DocumentRoot /path/to/gforge/cvs
  ScriptAlias /cgi-bin/ {usr_lib_gforge}/cgi-bin/
  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>

#
# Download host
#
<VirtualHost 10.GF.OR.GE:80>
  ServerName download.gforge.company.com
  DocumentRoot /var/lib/gforge/download
  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>

#
# List host
#
# HTTP
<VirtualHost 10.GF.OR.GE:80>
  ServerName lists.gforge.company.com
  AddHandler cgi-script .cgi

  ScriptAlias /mailman/ /usr/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>

  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 /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>

# HTTPS
<VirtualHost 10.GF.OR.GE:443>
  ServerName lists.gforge.company.com
  AddHandler cgi-script .cgi

  <IfModule mod_ssl.c>
    SSLEngine on
    SSLCertificateFile /etc/apache/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/apache/ssl.key/server.key
    <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
  </IfModule>

  ScriptAlias /mailman/ /usr/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>

  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 /var/log/gforge/%Y/%m/%d/gforge.log" gforge
</VirtualHost>

#
# cvs.* hosts
#
# This is magic for virtual hosting!
UseCanonicalName Off
# This example is so beautiful that I keep it
# And can be used in a better way e.g. creating a cvs directory by group
<VirtualHost 10.GF.OR.GE:80>
        ServerName cvs.gforge.company.com
        ServerAlias cvs.*.gforge.company.com
        DocumentRoot /home/groups/
        VirtualDocumentRoot /home/groups/%2/htdocs
        VirtualScriptAlias /home/groups/%2/cgi-bin
        <Directory /home/groups>
                Options Indexes FollowSymlinks
                AllowOverride All
                order allow,deny
                allow from all
        </Directory>
  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>

#
# * hosts
#
<VirtualHost 10.GF.OR.GE:80>
        ServerName gforge.company.com
        ServerAlias *.gforge.company.com
        VirtualDocumentRoot /home/groups/%1/htdocs
        VirtualScriptAlias /home/groups/%1/cgi-bin
        <Directory /home/groups>
               Options Indexes FollowSymlinks
               AllowOverride All
               order allow,deny
               allow from all
       </Directory>
  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>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]