Move web port

I’ve been using a stock Ubuntu 12.04 system for hosting rt. I’m at a point where I think I’d like to get rid of apache/apache2 and whatever else might be running, and let rt run on port 80 (until now it’s been on port 8080). Is there a way to allow rt to listen on both, or redirect traffic from 8080 to 80 after I shut down and disable apache?

I’ve been using a stock Ubuntu 12.04 system for hosting rt. I’m at a
point where I think I’d like to get rid of apache/apache2 and whatever
else might be running, and let rt run on port 80 (until now it’s been
on port 8080). Is there a way to allow rt to listen on both, or
redirect traffic from 8080 to 80 after I shut down and disable apache?

How are you running RT? Normally, RT runs in conjunction with apache.
You certainly can run it standalone for small installs using just a
plack server. I suggest having a look at the deployment docs and
figuring out your current configuration.

http://bestpractical.com/rt/docs/latest/web_deployment.html

-kevin

I am using the Plack server, but if I’m reading everything correctly, I should be disabling THAT and modify the Apache config files to be doing the web service at port 80? Then I could use a VirtualHost directive in an Apache config file on 8080 that redirects to 80, right?

John Buell
Systems Administrator
Country Samper LLC
(630) 762-7806-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Tuesday, April 02, 2013 2:58 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Move web port

On Tue, Apr 02, 2013 at 06:33:30PM +0000, John Buell wrote:

I’ve been using a stock Ubuntu 12.04 system for hosting rt. I’m at a
point where I think I’d like to get rid of apache/apache2 and whatever
else might be running, and let rt run on port 80 (until now it’s been
on port 8080). Is there a way to allow rt to listen on both, or
redirect traffic from 8080 to 80 after I shut down and disable apache?

How are you running RT? Normally, RT runs in conjunction with apache.
You certainly can run it standalone for small installs using just a plack server. I suggest having a look at the deployment docs and figuring out your current configuration.

http://bestpractical.com/rt/docs/latest/web_deployment.html

-kevin

Yes,

You need to add another LISTEN Directive to httpd.conf. At
the moment it will be a single LISTEN 80. You’d need to add 8080 and
then configure a virtualhost similar to this.

Mind it may need a bit
of tweaking as only bashed that out from memory.

<VirtualHost *:8080>

ServerName www.example.com:8080
Redirect 301 /
http://www.example.com/

REGARDS,

AARON GUISE

aaron@guise.net.nz

Right,
except that I’ve already “released it to the public” with 8080, so I was
just trying to find a quick way to do a redirect. A second VirtualHost
listening on 8080 and serving a single web page with a redirect to 80
would seem to me to be the way to do it, or is there another way?

John Buell

Systems Administrator

Country Samper LLC

(630) 762-7806

FROM: Aaron Guise [mailto:aaron@guise.net.nz]

SENT: Tuesday, April 02, 2013 5:11 PM

TO: John Buell
SUBJECT: Re:
[rt-users] Move web port

Hi John,

The general idea is that
you would configure a virtualhost on apache as per the guides. This
would then be listening on port 80 by default. You would then shutdown
the built in/standalone server you are currently running on port 8080.
This would then mean you can access your RT on port 80 via Apache once
your vhost is setup correctly.


REGARDS,

AARON
GUISE

AARON@GUISE.NET.NZ

I am using the Plack server, but if I’m reading everything
correctly, I should be disabling THAT and modify the Apache config
files to be doing the web service at port 80? Then I could use a
VirtualHost directive in an Apache config file on 8080 that redirects to
80, right?

John Buell

Systems Administrator

Country
Samper LLC

(630) 762-7806

-----Original Message-----

From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone

Sent: Tuesday, April 02, 2013 2:58 PM

To:
rt-users@lists.bestpractical.comSubject: Re: [rt-users] Move web port

I’ve been using a stock Ubuntu 12.04 system for hosting rt. I’m at a
point where I think I’d like to get rid of apache/apache2 and whatever
else might be running, and let rt run on port 80 (until now it’s been on
port 8080). Is there a way to allow rt to listen on both, or redirect
traffic from 8080 to 80 after I shut down and disable apache?

How
are you running RT? Normally, RT runs in conjunction with apache.

You certainly can run it standalone for small installs using just a
plack server. I suggest having a look at the deployment docs and
figuring out your current configuration.

Web deployment - RT 5.0.5 Documentation - Best Practical [1]

-kevin

Links:
[1]
http://bestpractical.com/rt/docs/latest/web_deployment.html

Sweet! Thanks!

John Buell
Systems Administrator
Country Samper LLC
(630) 762-7806From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Aaron Guise
Sent: Tuesday, April 02, 2013 5:34 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Move web port

Yes,

You need to add another LISTEN Directive to httpd.conf. At the moment it will be a single LISTEN 80. You’d need to add 8080 and then configure a virtualhost similar to this.

Mind it may need a bit of tweaking as only bashed that out from memory.

<VirtualHost *:8080>

ServerName www.example.com:8080

Redirect 301 / http://www.example.com/

Regards,

Aaron Guise

[Image removed by sender.]aaron@guise.net.nzmailto:aaron@guise.net.nz

[Image removed by sender.] [Image removed by sender.] [Image removed by sender.] [Image removed by sender.]

As it happens I never got the Redirect command to work properly, but a single web page delivered by apache2 on 8080 that redirects to 80 wound up doing the same trick. I got in a hurry last night and nearly forgot about the listen directive, which in my config goes in ports.conf. D’oh. :relaxed:

But thanks again Aaron!

I’m about to set up our building manager with his own queue for non-IT workorders, so we’re going to get a lot of use out of RT!From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of John Buell
Sent: Tuesday, April 02, 2013 5:38 PM
To: Aaron Guise
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Move web port

Sweet! Thanks!

John Buell
Systems Administrator
Country Samper LLC
(630) 762-7806

From: rt-users-bounces@lists.bestpractical.commailto:rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Aaron Guise
Sent: Tuesday, April 02, 2013 5:34 PM
To: rt-users@lists.bestpractical.commailto:rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Move web port

Yes,

You need to add another LISTEN Directive to httpd.conf. At the moment it will be a single LISTEN 80. You’d need to add 8080 and then configure a virtualhost similar to this.

Mind it may need a bit of tweaking as only bashed that out from memory.

<VirtualHost *:8080>

ServerName www.example.com:8080http://www.example.com:8080

Redirect 301 / http://www.example.com/

Regards,

Aaron Guise

[Image removed by sender.]aaron@guise.net.nzmailto:aaron@guise.net.nz

[Image removed by sender.] [Image removed by sender.] [Image removed by sender.] [Image removed by sender.]