[rt-users] Setting up Apache 1.3 for RT3 without virtual host
Andre Truter
linux at trusoft.co.za
Sun Feb 22 07:43:23 EST 2004
Hi All,
I have to set up a Request Tracker site and I managed to get it set up
using the Virtual host in the Apache configuration, as it is explained
in the RT3 installation guide. This is a test setup on my own machines.
The test server info:
SuSE Linux 9.0 (i586)
Apache/1.3.28 (Linux/SuSE) PHP/4.3.3 mod_perl/1.28
But, the problem is that with the production setup, I cannot use a
virtual host. The client don't want to use that.
So, I tried to set up the Apache with an Alias, but the only
documentation that I can find is from the RT2 documentation and mailing
list archives.
This is what i added to my httpd.conf file, at the end of the section
where the other Perl stuff is. (I tried it first in an included file at
the end of httpd.conf):
--<snip>--
Alias /rt/ /opt/rt3/share/html
PerlRequire /opt/rt3/bin/webmux.pl
<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason
</Location>
--<snip>--
Apache seems happy, but when I go to http://example.com/rt/
it gives me the directory listing of /opt/rt3/share/html
When I try:
http://example.com/rt/index.html
I get the following error (this is hte raw output):
--<snip>--
Component path given to Interp->load must be absolute (was given
index.html)
Trace begun at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Interp.pm line 235
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x8ea1be4)', 'index.html') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 198
eval {...}('HTML::Mason::Interp=HASH(0x8ea1be4)', 'index.html') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 186
HTML::Mason::Request::_initialize('HTML::Mason::Request::ApacheHandler=HASH(0x969d2bc)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 166
HTML::Mason::Request::new('HTML::Mason::Request::ApacheHandler', 'error_format', 'html', 'error_mode', 'output', 'interp', 'HTML::Mason::Interp=HASH(0x8ea1be4)', 'comp', 'index.html', 'args', 'ARRAY(0x896c90c)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'apache_req', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 60
HTML::Mason::Request::ApacheHandler::new('HTML::Mason::Request::ApacheHandler', 'error_format', 'html', 'error_mode', 'output', 'interp', 'HTML::Mason::Interp=HASH(0x8ea1be4)', 'comp', 'index.html', 'args', 'ARRAY(0x896c90c)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'apache_req', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/Class/Container.pm line 265
Class::Container::call_method('HTML::Mason::Interp=HASH(0x8ea1be4)', 'request', 'new', 'interp', 'HTML::Mason::Interp=HASH(0x8ea1be4)', 'comp', 'index.html', 'args', 'ARRAY(0x896c90c)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'apache_req', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/Class/Container.pm line 343
Class::Container::create_delayed_object('HTML::Mason::Interp=HASH(0x8ea1be4)', 'request', 'interp', 'HTML::Mason::Interp=HASH(0x8ea1be4)', 'comp', 'index.html', 'args', 'ARRAY(0x896c90c)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'apache_req', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Interp.pm line 213
HTML::Mason::Interp::make_request('HTML::Mason::Interp=HASH(0x8ea1be4)', 'comp', 'index.html', 'args', 'ARRAY(0x896c90c)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'apache_req', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 863
eval {...}('HTML::Mason::Interp=HASH(0x8ea1be4)', 'comp', 'index.html', 'args', 'ARRAY(0x896c90c)', 'ah', 'HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'apache_req', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 862
HTML::Mason::ApacheHandler::prepare_request('HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'Apache=SCALAR(0x878fe18)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 789
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'Apache=SCALAR(0x878fe18)') called at /opt/rt3/bin/webmux.pl line 134
eval {...}('HTML::Mason::ApacheHandler=HASH(0x852d3cc)', 'Apache=SCALAR(0x878fe18)') called at /opt/rt3/bin/webmux.pl line 134
RT::Mason::handler('Apache=SCALAR(0x878fe18)') called at /dev/null line 0
eval {...}('Apache=SCALAR(0x878fe18)') called at /dev/null line 0
--<snip>--
Are there some other settings that I need to change/set?
Thanks
--
Andre Truter Software Engineer Registered Linux user #185282
ICQ #40935899 AIM: trusoftzaf http://www.trusoft.co.za
~ "Oh Bother!" said the Borg, "We assimilated the Pooh!" ~
More information about the rt-users
mailing list