How to run Stash using port 443

I am currently running SSL/HTTPS Stash using port 8443..

Because of the company policy.. I have to run this in 443 instead of 8443..

 

I configured server.xml 

<Connector port="8443" to <Connector port="443"

but after this configuration.. the server is not starting at all.. 

 

When I run netstat -plten | grep java command.. I don't see 443 running.. (other than 443 is running)

Do I have to make any other changes? 

 

 

 

2 answers

1 accepted

Unless you run Stash as root, you can't (in most Linux distros) bind to port 443.  Running Stash as root is not good practice because malicious code then as root access to the entire machine.

So the next best approach is to run Stash as a non-root use and use something like Apache to configure a reverse proxy.  Apache runs as root and re-directs traffic to Stash running on the same server.  This is documented here:

 

https://confluence.atlassian.com/stash/securing-stash-with-apache-using-ssl-364609803.html

 

 

If running on linux as a service you have to allow it open the privileged port. That's a os specific setting / command, not in stash.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,891 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you