[aklug] Re: Apache2 and Perl

From: Michael Fowler <michael@shoebox.net>
Date: Tue Dec 27 2011 - 16:22:56 AKST

On Tue, Dec 27, 2011 at 04:02:01PM -0900, Damien Hull wrote:
> I'm trying to install Request Tracker. It seems I missed some of the
> documentation. Turns out they want people to use Starman to run the
> application. Apache is only there as a proxy.
>
> I guess that's what you are talking about. I have most of it
> installed. I just need to figure out how to start the app with Starman
> and get apache mod_proxy working.

Ah, so you're using the application server method. The most direct
instructions I can find for getting things configured are directly out
of the docs directory:
https://github.com/bestpractical/rt/blob/stable/docs/web_deployment.pod

The Starman instructions are in the 'Standalone' section. Once you've
started it you get a standalone web server; making sure it's kept
running across reboots and crashes is then up to you, probably through
cron jobs and an init script.

To proxy it you'll need to load mod_proxy by symlinking the
configuration:

    cd /etc/apache2/mods-enabled
    ln -s ../mods-available/proxy.conf
    ln -s ../mods-available/proxy.load

There's probably a script installed somewhere that will do this for you.

From there it's a matter of configuring your proxying; the simplest
would be to add a ProxyPass directive in the relevant VirtualHost
section:

    ProxyPass /rt http://localhost:8080

This opens the application server directly to external access; assuming
you trust the security, it should be fine; make sure to run it under as
limited a user as possible. FastCGI would be a little more protected;
then you'd be dealing with just the security problems of RT itself.

That should do it, let us know if it works.

--
Michael Fowler
www.shoebox.net
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue, 27 Dec 2011 16:22:56 -0900

This archive was generated by hypermail 2.1.8 : Tue Dec 27 2011 - 16:24:32 AKST