00_default_vhost.conf:
#
# The First Virtual Host is also your DEFAULT Virtual Host.
# This means any requests that do not match any other vhosts will
# goto this virtual host.
#
<IfDefine DEFAULT_VHOST>
<VirtualHost *:80>
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/localhost/htdocs"
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/localhost/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<IfModule peruser.c>
# this must match a Processor
ServerEnvironment apache apache
# these are optional - defaults to the values specified in httpd.conf
MinSpareProcessors 4
MaxProcessors 20
</IfModule>
<IfModule itk.c>
# The userid and groupid this VirtualHost will run as
AssignUserID apache apache
# Optional: A separate MaxClients for the VirtualHost,
# to limit the maximum number of processes
MaxClientsVHost 50
# Note that if you do not assign a user ID for your
# VirtualHosts, none will be assigned by default,
# ie. you'll run as root. Don't forget this!
</IfModule>
</VirtualHost>
</IfDefine>
rt_apache2.conf:
<IfDefine PERL>
<VirtualHost *:80>
ServerName myrt.10.46.12.156
DocumentRoot /var/www/myrt/htdocs/rt
ServerAdmin YOUR_EMAIL_HERE
AddDefaultCharset UTF-8
<IfDefine USERDIR>
UserDir disabled
</IfDefine>
PerlModule Apache::DBI
PerlRequire /var/www/myrt/rt-3.6.1/bin/webmux.pl
<Location />
SetHandler perl-script
PerlHandler RT::Mason
PerlSetEnv PERL5LIB /usr/lib/perl5/vendor_perl/5.8.8:/usr/lib/perl5/5.8.8
</Location>
<Directory "/var/www/myrt/htdocs/rt">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
</IfDefine>
rt_apache2_fcgi.conf
<IfDefine FASTCGI>
# Tell FastCGI to put its temporary files somewhere sane.
FastCgiIpcDir /tmp
# Tell FastCGI that it should use apache's "suexec" binary to call any FastCGI script.
# This is a GLOBAL setting
FastCgiWrapper /usr/sbin/suexec2
# Apache 1.3 discards the user and group parameters on the FastCgiServer line.
# Apache 2.0 requires them.
FastCgiServer /var/www/myrt/rt-3.6.1/bin/mason_handler.fcgi -idle-timeout 120 -user rt -group rt -processes 4
<VirtualHost *:80>
ServerName myrt.10.46.12.156
DocumentRoot /var/www/myrt/htdocs/rt
ServerAdmin YOUR_EMAIL_HERE
AddDefaultCharset UTF-8
<IfDefine USERDIR>
UserDir disabled
</IfDefine>
# Set the rt user and group as the executing user for this virtual host
SuexecUserGroup rt rt
AddHandler fastcgi-script fcgi
ScriptAlias / /var/www/myrt/rt-3.6.1/bin/mason_handler.fcgi/
<Directory "/var/www/myrt/htdocs/rt">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
</IfDefine>