Confluence redirect 8090 to 80

Gianni Cooreman July 27, 2013

Hi, I'm running Confluence 5.1.3 as non-root on CentOS 6.3. Since I cannot use ports lower than 1024, I used an iptables redirect as mentioned in the confluence wiki page, but do I need to change anything to server.xml or my base server configuration? Logging in from port 80 externally works, but if I go to for instance the admin section "Manage Add-Ons" and I try to download a new update, it gives me an error and says that I need to check my logs. I think the updates cannot be downloaded because the system tries to download through the wrong port?

Am I missing something?

Thanks,

Gianni

6 answers

1 accepted

2 votes
Answer accepted
jing_hwa_cheok
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 28, 2013

Hi Gianni,


Did you reconfigure the Server Base URL in Confluence Admin>>General Configuration>>Edit>>Server Base URL to port 80? It might be possible that Confluence is still trying to access the manage Add on page through port 8090 based on the Server Base URL.

Hope this helps!

1 vote
Mark_McKay May 23, 2019

Actually this worked for me. Run the following commands in order:

 

iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8090 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090
Ralco June 17, 2019

Hi,

It's working, but after rebooting the server automatically forwarding back to the 8090.

 

Please help me to forward the permanently on 80.

 

Thank you. 

0 votes
C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2013

try this one @mcomsto

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
Birgit Bacher October 8, 2018

Thank you so much... did solve my problem in <1minute :)

0 votes
mcomsto September 15, 2013

C. Faysal,

Thank you. That worked.

0 votes
mcomsto September 15, 2013

Gianni,

Centos newbie. Can you share the iptable commands you ran to set this up?

Thanks,

Matt

0 votes
C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2013

hi gianni.

that topic was often discussed here.

https://answers.atlassian.com/questions/88263/running-confluence-on-port-80

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events