It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

HTTPS on port 8080?

Hello,

Is it possible to set HTTPS on port 8080? We are currently using 8443 for HTTPS. But my boss would like port 8080 be encrypted as well, Is this possible?

Thank you so much!

3 answers

1 accepted

5 votes
Answer accepted

There’s nothing special about the port numbers. You can have HTTPS run over 8443 or 8080 or 2345 if you want.

Or, do you want to have Jira run over HTTPS over both 8080 and 8443 at the same time? I don’t think you can do that, but there’s really no reason to. Just turn off the HTTP version and run only the HTTPS version.

Thank you so much for your answer.

I wonder if user browse http://mydomain.com:8080it should redirect tohttps://mydomain.com:8080

What exactly do I need to change here?

<Connector port="8080"

maxThreads="150"

minSpareThreads="25"

connectionTimeout="20000"

enableLookups="false"

maxHttpHeaderSize="8192"

protocol="HTTP/1.1"

useBodyEncodingForURI="true"

redirectPort="8443" //Can I remove this?

acceptCount="100"

disableUploadTimeout="true"/>

<Connector port="8443" //Can I just change it to 8080?

protocol="org.apache.coyote.http11.Http11Protocol"

maxHttpHeaderSize="8192"

SSLEnabled="true"

maxThreads="150"

minSpareThreads="25"

enableLookups="false"

disableUploadTimeout="true"

acceptCount="100"

scheme="https" secure="true"

clientAuth="false"

Like Alex Kotov likes this

It looks like the way it’s setup now, http://mydomain.com:8080(unsecure) should redirect to https://mydomain.com:8443(secure). That actually doesn’t seem so bad. What is actually happening when you go to http://mydomain.com:8080now?

But if you like, you could just remove the whole connector element for port 8080 (that’s the first one) and change the 8443 in the second connector element to 8080. That should make port 8080 serve Jira over HTTPS, and nothing would run over port 8443.

This is our current setup. When user go to http://mydomain.com:8080it will redirect to https://mydomain.com:8443

But if I remove the whole connector element for port 8080(http). I'm afraid http://mydomain.com:8080will not be accessible? Am I correct?

That is correct. When you remove the whole connector element for port 8080, then http://mydomain.com:8080will not be accessible. When you change the second connector element from 8443 to 8080, then https://mydomain.com:8080will be accessible. But you can’t have HTTP and HTTPS run over the same port.

Now, you may notice that if you go to http://jira.atlassian.com, you are redirected to https://jira.atlassian.com. But remember, they are actually running on different ports. You’re actually going to http://jira.atlassian.com:80and you are being redirected to https://jira.atlassian.com:443. Your web browser knows that 80 and 443 are the default ports for HTTP and HTTPS and doesn’t show them.

If you changed your ports to 80 and 443 in your application, you would get the same behavior. http://mydomain.comwould redirect to https://mydomain.com.

In Unix-based systems, you need to run as root to bind to ports 80 and 443. I don’t know if Windows has a similar restriction.

Thank you so much for your response Sir Cedric!

Everything you said here helped alot! ^_^

More power to you!

or you can use apache as a proxy using https

0 votes
jasmine I'm New Here Nov 22, 2019

VNC servers typically accept connections on 5900, while pushing the java client on port 5800. Your web browser works on port 80. Port 8080 is typically used for a personally hosted web server, when the ISP restricts this type of usage for non-commercial customers.

view here More about iCloud sign in & kigroot app Gapyear

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

221 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you