RT3 vs. Default Apache Page

My RT3 works great, but I have an apache config question regarding the default page.
I often want to connect into my RT via SSH. I do this by building an ssh port forward-- something like:

ssh -l joseph -L 10080:10.4.5.6:80 ip.of.external.system

Then if I http://127.0.0.1:10080 I would like to access RT. However, upon doing so, I get the default apache page. My apache config has:

<VirtualHost 10.4.5.6>
ServerName 10.4.5.6

DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

SetHandler perl-script

PerlHandler RT::Mason

I believe the problem is due to the ServerName 10.4.5.6.
For testing, if I make it this: ServerName 127.0.0.1:10080
RT is accessible through the port forward. But this config will break it for the internal people.

This web server doesn’t need to serve any other content. Can I simply remove the VirtualHost tags and modify the config such that no matter how this web server is reached it will serve RT?

Thanks!

If life gives you lemons, keep them-- because hey… free lemons.

Post to the list. My first was rejected due to an error on my part.From: Josh Boon qwert2332@gmail.com
Date: Sun, Apr 11, 2010 at 16:17
Subject: Re: [rt-users] RT3 vs. Default Apache Page
To: Joseph Spenner joseph85750@yahoo.com
Cc: rt-users@lists.bestpractical.com

Joesph,

Yep you can change your config to look like this:

NameVirtualHost *

<VirtualHost *>
ServerName *

DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

<Location />
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>

If the server ended up needing to run something else using the same apache
instance you can add a second host still by following the configuration
examples at http://httpd.apache.org/docs/1.3/vhosts/name-based.html.
Remember that all generic requests will go to the first vhost found and
specific ones will go to the vhost specified.

All the best,
Josh

Dear List,
i need some help or Ideas about Approvals of RT. I have to create a huge workflow with several approvals needed.

i know already, that i can start several approvals within one template, i also know, that this templates can have perl code inside, but i’m not sure at the moment about the best way to create something like this:

Scrip: OnCreate -> CreateTickets -> Template:Approval

Template should look like this:

if fieldA = xyz {
Approval 1
if fieldB = abc {
Approval 2
} else if fieldC =123 {
Approval 3
}
}

So i need some logic inside this approvals, my question:

Is this doable inside the template part or is it better to put the logic inside a scrip and fire from the scrip several templates?

Torsten

Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne

Torsten,

I have never been a fan of using templates to create tickets. To me
the learning curve for CreateTickets is nearly as large as for
learning the RT API but does not have nearly the same amount of
flexibility.

-ToddOn Mon, Apr 12, 2010 at 2:53 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID torsten.brumm@kuehne-nagel.com wrote:

Dear List,
i need some help or Ideas about Approvals of RT. I have to create a huge
workflow with several approvals needed.

i know already, that i can start several approvals within one template, i
also know, that this templates can have perl code inside, but i’m not sure
at the moment about the best way to create something like this:

Scrip: OnCreate → CreateTickets → Template:Approval

Template should look like this:

if fieldA = xyz {
Approval 1
if fieldB = abc {
Approval 2
} else if fieldC =123 {
Approval 3
}
}

So i need some logic inside this approvals, my question:

Is this doable inside the template part or is it better to put the logic
inside a scrip and fire from the scrip several templates?

Torsten

Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.),
Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté,
Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht:
Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende
Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg,
Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Dear List,
i need some help or Ideas about Approvals of RT. I have to create a huge
workflow with several approvals needed.

i know already, that i can start several approvals within one template,
i also know, that this templates can have perl code inside, but i’m not
sure at the moment about the best way to create something like this:

Scrip: OnCreate → CreateTickets → Template:Approval

Template should look like this:

if fieldA = xyz {
Approval 1
if fieldB = abc {
Approval 2
} else if fieldC =123 {
Approval 3
}
}

So i need some logic inside this approvals, my question:

Is this doable inside the template part or is it better to put the logic
inside a scrip and fire from the scrip several templates?

Torsten

K�hne + Nagel (AG & Co.) KG, Gesch�ftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke,
Christian Marnett�, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz:
Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878,
Pers�nlich haftende Gesellschaft: K�hne & Nagel A.G., Sitz:
Contern/Luxemburg, Gesch�ftsf�hrender Verwaltungsrat: Klaus-Michael K�hne

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Hi Torsten,

I would create 3 templates: Approval1, Approval2 and Approval3 and
then choose the right template within the scrip

or

I would create one scrip, check the field and then create the
Approval tickets with RT::Ticket->Create.

I think a template shouldn’t contain any business logic.

Chris

Hi Todd, Christian,
thanks for your replies. I did it in the way like Christian explained and
used several scrips to fire the templates.

Torsten2010/4/15 Christian Loos cloos@netcologne.de

Am 12.04.2010 08:53, schrieb Brumm, Torsten / Kuehne + Nagel / Ham MI-ID:

Dear List,
i need some help or Ideas about Approvals of RT. I have to create a huge
workflow with several approvals needed.

i know already, that i can start several approvals within one template,
i also know, that this templates can have perl code inside, but i’m not
sure at the moment about the best way to create something like this:

Scrip: OnCreate → CreateTickets → Template:Approval

Template should look like this:

if fieldA = xyz {
Approval 1
if fieldB = abc {
Approval 2
} else if fieldC =123 {
Approval 3
}
}

So i need some logic inside this approvals, my question:

Is this doable inside the template part or is it better to put the logic
inside a scrip and fire from the scrip several templates?

Torsten

Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann
(Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke,
Christian Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz:
Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878,
Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz:
Contern/Luxemburg, Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Hi Torsten,

I would create 3 templates: Approval1, Approval2 and Approval3 and
then choose the right template within the scrip

or

I would create one scrip, check the field and then create the
Approval tickets with RT::Ticket->Create.

I think a template shouldn’t contain any business logic.

Chris

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de