RT and other apache stuff

Boy is that obtuse or what? Anyway, I’ve searched the archives but never
found a usable solution so I’m willing to take suggestions. It’s a live
site I don’t want to bugger up too bad.

I’d like to run some other web server based applications along side RT but
the install I did was for an RT only install. I’d prefer to use Apache
VirtualHosts so I can refer to the sites as rt.mycompany.com,
otherstuff.mycompany.com, etc.

I tried enclosing the RT stuff in blocks and
the ‘main’ server in and out of VirtualHost block but I kept getting only
one page of the other. Upon reflection I might have forgot to actually
refresh the page but I’d sure like some confirmation if this will work.

RHL 7.3, Apache 1.3.23, PostgreSQL 7.2.1, and whatever was the latest
version of mod_perl, Mason, and RT four-five months ago.

Any and all appreciated,
Rod
“Open Source Software - Sometimes you get more than you paid for…”

I’d like to run some other web server based applications along side RT but
the install I did was for an RT only install. I’d prefer to use Apache
VirtualHosts so I can refer to the sites as rt.mycompany.com,
otherstuff.mycompany.com, etc.

Yes, it will work. I have several virtual servers running on one apache
installation, rt being one of the above.

I suggest doing hostname based virtual servers, and having a default
server specified too.

Here’s the relevant section of my httpd.conf:

<VirtualHost 10.69.1.14>
ServerName help.xxx.com
DocumentRoot /var/www/html/

<VirtualHost 10.69.1.14>
ServerName rt.xxx.com
ServerAlias helpfish.xxx.com
DocumentRoot /usr/local/rt2/WebRT/html
PerlModule Apache::DBI
PerlRequire /usr/local/rt2/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

<Location /chart>
SetHandler perl-script
PerlHandler +Apache::GD::Graph

<VirtualHost 10.69.1.14>
ServerName bb2.xxx.com
DocumentRoot /home/bb/bb/www/
ServerAlias bb.xxx.com

Also, remember to use this line:

NameVirtualHost 10.69.1.14

For further help, I suggest the apache mailing lists.

Russ Johnson
Dimension 7/Stargate Online

Random thought #4 (Collect all 17)
“Life does not have to be perfect to be wonderful.” - Annette Funicello

I’m running RT as a virtual. name-based. If you have troubles, you can
setup another ip address too, and have it do an ip virt.On Mon, 28 Oct 2002, Roderick A. Anderson wrote:

Boy is that obtuse or what? Anyway, I’ve searched the archives but never
found a usable solution so I’m willing to take suggestions. It’s a live
site I don’t want to bugger up too bad.

I’d like to run some other web server based applications along side RT but
the install I did was for an RT only install. I’d prefer to use Apache
VirtualHosts so I can refer to the sites as rt.mycompany.com,
otherstuff.mycompany.com, etc.

I tried enclosing the RT stuff in blocks and
the ‘main’ server in and out of VirtualHost block but I kept getting only
one page of the other. Upon reflection I might have forgot to actually
refresh the page but I’d sure like some confirmation if this will work.

RHL 7.3, Apache 1.3.23, PostgreSQL 7.2.1, and whatever was the latest
version of mod_perl, Mason, and RT four-five months ago.

Any and all appreciated,
Rod

“Open Source Software - Sometimes you get more than you paid for…”


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

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Rick Rezinas 503-889-7091
Unix Systems Administrator
Qsent, Inc.

When Gladstone was British Prime Minister he visited Michael Faraday’s
laboratory and asked if some esoteric substance called `Electricity’
would ever have practical significance.
“One day, sir, you will tax it,” was the answer.
– Science, 1994

Russ Johnson, Rick Rezinas and others, thanks. Richard Massa sent me his
httpd.conf which enlightened me greatly. I was just trying to make it too
complicated (and probably skipped some steps, some times.)

Again thanks for the input.

Rod
"Open Source Software - Sometimes you get more than you paid for…"

I’d like to run some other web server based applications along side RT but
the install I did was for an RT only install. I’d prefer to use Apache
VirtualHosts so I can refer to the sites as rt.mycompany.com,
otherstuff.mycompany.com, etc.

Yes, it will work. I have several virtual servers running on one apache
installation, rt being one of the above.

I suggest doing hostname based virtual servers, and having a default
server specified too.

You don’t need the IP address to be given in newer versions of Apache
(1.3.13 or better). If you’ve got a new enough version you can do this:

NameVirtualHost *

<VirtualHost *>
ServerName rt.gbdirect.co.uk
ServerAlias rt
Options All
ServerAdmin rt-owner@gbdirect.co.uk

— Geoff Richards -------><------- www.rosies-dumplings.co.uk/qef
“I tried to fling my shadow at the moon,
The while my blood leapt with a wordless song.” – Theodore Roethke

I’m running RT as a virtual. name-based. If you have troubles, you can
setup another ip address too, and have it do an ip virt.

Well, if I was reviewing your application for more IP addresses, having
that as justification for usage wouldn’t sit well with me :wink:

A ‘better’ way of presenting RT and other applications on one apache
server (where one or more of the applications interfere with each other),
is to put a RT-dedicated copy of Apache running on a different port, and
utilise mod_proxy on the main Apache instance to ensure that your RT users
don’t notice any difference.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security

I wanted to follow up on this as it proved to be a very simple(ton)
problem. I was so close but kept forgetting that the server was on the
back side of a a NATing firewall so it’s IP address was different from the
public IP. Go figure eh? When the entry is for the external IP and
apache sees the internal things go south quickly.
After getting it working I looked at the new(er) method of using a
wildcard ‘*’ and it still worked. Feel good day today!

Thanks to all that offered suggestions and support.

RodOn Mon, 28 Oct 2002, Russ Johnson wrote:

I’d like to run some other web server based applications along side RT but
the install I did was for an RT only install. I’d prefer to use Apache
VirtualHosts so I can refer to the sites as rt.mycompany.com,
otherstuff.mycompany.com, etc.

Yes, it will work. I have several virtual servers running on one apache
installation, rt being one of the above.

I suggest doing hostname based virtual servers, and having a default
server specified too.

Here’s the relevant section of my httpd.conf:

<VirtualHost 10.69.1.14>
ServerName help.xxx.com
DocumentRoot /var/www/html/

<VirtualHost 10.69.1.14>
ServerName rt.xxx.com
ServerAlias helpfish.xxx.com
DocumentRoot /usr/local/rt2/WebRT/html
PerlModule Apache::DBI
PerlRequire /usr/local/rt2/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

<Location /chart>
SetHandler perl-script
PerlHandler +Apache::GD::Graph

<VirtualHost 10.69.1.14>
ServerName bb2.xxx.com
DocumentRoot /home/bb/bb/www/
ServerAlias bb.xxx.com

Also, remember to use this line:

NameVirtualHost 10.69.1.14

For further help, I suggest the apache mailing lists.

“Open Source Software - Sometimes you get more than you paid for…”