You should look at the reverse proxy documentation for Stash.
Why would you want to start with this instead of simply changing the Tomcat port in server.xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd rather not run something, such as Stash, as a higher privileged user such as root, or an admin user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, Stash works just like the other Atlassian applications, so you can do what @Larry Shatzer suggested and reverse-proxy it to another webcontainer listening on port 80 OR you could change the server.xml for Stash's Tomcat to listen on port 80.
This isn't as much a Stash question as it is a web-container/application question, good question though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can't change the port to be port 80 if you're running linux. In order for a process to be run on a port <100 it needs to be run as root. I would not run Stash as root because of the git hooks.
To "change" the port - add nginx or apache in front of it and have them reverese proxy to port 80. You can do it with iptables as well but that might get messy real quick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can change server.xml. Also make sure to start the application under superuser otherwise sometimes you will not be able to bind to dedicated ports like 80 without root privilege.
e.g
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" useBodyEncodingForURI="true" redirectPort="8443" compression="on" compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,application/x-javascript" />
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The default path is /opt/atlassian/stash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There should be a directory called "conf". server.xml file is inside that directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, there's a folder called `conf`, but there's no server.xml also, files in this folder Catalina catalina.properties logging.properties tomcat-users.xml web.xml catalina.policy context.xml scripts.cfg tomcat-users.xsd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry It is changed now. Pls refer below doc. The new path is /opt/atlassian/stash/3.8.1/shared https://confluence.atlassian.com/display/STASH/Changing+the+port+that+Stash+listens+on
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I find the server.xml file, and do it following this link https://confluence.atlassian.com/display/STASH/Changing+the+port+that+Stash+listens+on, but it still doesn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, you're able to change the port to 80? Could mark this as the answer? And just a heads up, the server.xml file did move recently so that you wouldn't have to carry over customizations when you upgraded. Old location: <Stash installation directory>/conf/server.xml New location: <Stash home directory>/shared/server.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I find the server.xml, but I give up to change the port, it seems not work, I set it following this link. https://confluence.atlassian.com/display/STASH/Changing+the+port+that+Stash+listens+on
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then its something wrong with your set up and its up to you to trouble shoot. Above link explains how to do it correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.