Httpd.conf with rt as non document root?

Can someone send an example section of their httpd.conf where they have
webrt running in a non document root directory, with maybe an alias or
symbolic link?

Joe
Rutgers University

Can someone send an example section of their httpd.conf where they have
webrt running in a non document root directory, with maybe an alias or
symbolic link?

This is mine:

Alias /rt2/ “/usr/local/rt2/WebRT/html/”

<Directory “/usr/local/rt2/WebRT/html”>
AllowOverride None
Options None ExecCGI FollowSymLinks
Order allow,deny
Allow from all
PerlRequire /usr/local/rt2/bin/webmux.pl
PerlModule Apache::DBI
SetHandler perl-script
PerlHandler RT::Mason
Options ExecCGI

Charlie Watts
cewatts@frontier.net
Frontier Internet
http://www.frontier.net/

Thanks. The ‘PerlModule Apache::DBI’ line works for you? I have mysql,
and I get this error, even though I have DBI installed:

3:43PM ~/rt-2-0-0/tools # rcapache start
Starting httpd [ SuSEHelp PHP4 mod_perl ]

Syntax error on line 1019 of /etc/httpd/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /opt/rt2/etc
/opt/rt2/lib /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /usr/local/httpd/ /usr/local/httpd/lib/perl) at
(eval 47) line 3.

3:44PM /usr/lib/perl5 # find -name DBI.pm
./site_perl/5.6.0/i586-linux/Bundle/DBI.pm
./site_perl/5.6.0/i586-linux/DBI.pm
./site_perl/5.6.0/Apache/Session/Store/DBI.pmOn Fri, 20 Jul 2001, Charlie Watts wrote:

On Fri, 20 Jul 2001, Joe S. wrote:

Can someone send an example section of their httpd.conf where they have
webrt running in a non document root directory, with maybe an alias or
symbolic link?

This is mine:

Alias /rt2/ “/usr/local/rt2/WebRT/html/”

<Directory “/usr/local/rt2/WebRT/html”>
AllowOverride None
Options None ExecCGI FollowSymLinks
Order allow,deny
Allow from all
PerlRequire /usr/local/rt2/bin/webmux.pl
PerlModule Apache::DBI
SetHandler perl-script
PerlHandler RT::Mason
Options ExecCGI


Charlie Watts
cewatts@frontier.net
Frontier Internet
http://www.frontier.net/

Thanks. The ‘PerlModule Apache::DBI’ line works for you? I have mysql,
and I get this error, even though I have DBI installed:

3:43PM ~/rt-2-0-0/tools # rcapache start
Starting httpd [ SuSEHelp PHP4 mod_perl ]

Syntax error on line 1019 of /etc/httpd/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /opt/rt2/etc
/opt/rt2/lib /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /usr/local/httpd/ /usr/local/httpd/lib/perl) at
(eval 47) line 3.

3:44PM /usr/lib/perl5 # find -name DBI.pm
./site_perl/5.6.0/i586-linux/Bundle/DBI.pm
./site_perl/5.6.0/i586-linux/DBI.pm
./site_perl/5.6.0/Apache/Session/Store/DBI.pm

You need to install Apache::DBI … rt-2-0-1 doesn’t check for it in
testdeps. I think Jesse said he was going to add it in the future, though.

perl -MCPAN -e “install Apache::DBI”

Does that fix it for you?

I’ve tried the alias, but it doesn’t seem to work with subdirectories (my document root is /usr/local/httpd/htdocs in suse linux 7.1 according to /var/log/httpd.error_log (I put in the foo):

[Fri Jul 20 16:07:07 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/rt.jpg
[Fri Jul 20 16:07:07 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/NoAuth/webrt.css
[Fri Jul 20 16:07:07 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/NoAuth/images/spacer.gif
[Fri Jul 20 16:07:34 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/NoAuth/webrt.css
[Fri Jul 20 16:07:34 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/NoAuth/images/spacer.gif
[Fri Jul 20 16:07:34 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/rt.jpg
[Fri Jul 20 16:07:37 2001] [error] [client foo.foo.foo.foo] File does not
exist: /
usr/local/httpd/htdocs/NoAuth/Logout.htmlOn Fri, 20 Jul 2001, Charlie Watts wrote:

On Fri, 20 Jul 2001, Joe S. wrote:

Can someone send an example section of their httpd.conf where they have
webrt running in a non document root directory, with maybe an alias or
symbolic link?

This is mine:

Alias /rt2/ “/usr/local/rt2/WebRT/html/”

<Directory “/usr/local/rt2/WebRT/html”>
AllowOverride None
Options None ExecCGI FollowSymLinks
Order allow,deny
Allow from all
PerlRequire /usr/local/rt2/bin/webmux.pl
PerlModule Apache::DBI
SetHandler perl-script
PerlHandler RT::Mason
Options ExecCGI


Charlie Watts
cewatts@frontier.net
Frontier Internet
http://www.frontier.net/


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users