##
## httpd conf for RT/RTIR with mod_perl
##
## 2007/03/17 julient.touche@lycos.com
##

#ScriptAlias /rt/cgi-bin/ /var/www/cgi-bin/rt3/
#<Directory "/cgi-bin/rt3/">
#	Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
#	DirectoryIndex search.pl
#	AllowOverride AuthConfig
#	Options ExecCGI
#	Order deny,allow
#	Deny from all
#	Allow from 127.0.0.1
#
#</Directory>

ScriptAlias /rt3/ /var/www/rt3/share/html/
<Directory "/var/www/rt3/">
	Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
	Order deny,allow
	Deny from all
	Allow from 127.0.0.1
	Allow from 192.168.1

	DirectoryIndex index.html

	SetEnv PERL5LIB /var/www/usr/perl5rt/lib/perl5/site_perl/5.8.8/OpenBSD.i386-openbsd-thread-multi:/var/www/usr/perl5rt/lib/perl5/site_perl:/var/www/rt3
	SetEnv LANG C
	PassEnv PERL5LIB
	PassEnv LANG

	AddDefaultCharset UTF-8
	## if mod_perl
	<IfModule mod_perl.c>
		## from RT README, mod_perl only (disable if FastCGI)
		PerlModule Apache::DBI
		PerlRequire /var/www/rt3/bin/webmux.pl
		SetHandler perl-script
		PerlHandler RT::Mason
	</IfModule>
</Directory>

<FilesMatch "\.pm$">
	Order allow,deny
	Deny from all
</FilesMatch>
