Running Confluence on Port 80

Luis Mayora
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 18, 2012

Does anyone know the steps to run confluence on port 80 using Linux. Already follow the instructions for the server.xml but it is not working.

4 answers

1 accepted

1 vote
Answer accepted
Luis Mayora
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.
October 9, 2012

I did use a tcp redirect to port 8090 since this is a linux kernel security feature. I wasn't thinking on installing apache since is another component to maintain. Guess my Confluence Site Configurationwill be maintained with Puppet.

Bruna Griebeler
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.
December 6, 2012

Just to reinforce Louis answer: How to Redirect Port 8090 to 80 Using Iptables

2 votes
twong_atlassian
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.
December 7, 2012

You can't bind any port <1024 in linux unless you're a priviledged user. You can either run as root (not cool), or you could run a reverse proxy to redirect traffic from 80 to somethign else (cooler).

https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy

0 votes
Bruna Griebeler
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 18, 2012

He Louis

I recommend you to use Apache with mod_proxy to better manage the ports to your Web Services:
https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy


Then you may use your Confluence Instance as follows:

http://www.example.com/confluence - your intended URL

OR

http://example:8090 - the hostname and port Confluence is currently installed to

OR

/confluence - the intended context path (the part after hostname and port)

Hope it helps! :)

Harry Chan
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 18, 2012

Are you running this from a user other than root? Then yes, you won't be able to access those ports and that is the problem. You need to play with the iptables and get it to redirect the ports. Setup Confluence on another port and then redirect to port 80.

Luis Mayora
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 18, 2012

Personally, I dont think I should install Apache since it is another component to maintain. I understand that this is not related to confluence and is only related to a linux environment. I dont know it is feasible to change the linux configuration to access ports below 1024.

Thougths?

Luis Mayora
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 18, 2012

Guessing i will have to automate this configuration using a puppet client on our confluence vm. No need to use root at this time :)

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 18, 2012

We don't know what instructions you have followed, or what your setup is.

If it's the standalone installation, then you've got two basic options:

1. Change the port on the Tomcat to listen on port 80. You *will* need to fiddle with the security somewhat, as programs are not generally allowed to use ports below 1024 unless they are running as root.

2. Do what most of us do - whack apache on the machine and tell it to proxy http://yourmachine to http://yourlocaljira:8090

Oren Feldman November 20, 2012

How do you set option 2? how to set the proxy?

I tried to set in proxy.conf the following but it didn't work, any hints?

<VirtualHost 127.0.0.1:80> ServerName example.com ServerAlias www.example.com ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8090/ ProxyPassReverse / http://localhost:8090/ <Location // > Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </VirtualHost>


 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events