How we can remove Port number from URL

Ravi Prakash February 17, 2019

Hi 

 

can you tell me how we can remove that that port number from URL? 

for example

 www.xyz.com:9201

 

2 answers

3 votes
Alexey Matveev
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.
February 17, 2019

Hello,

You would need to user a proxy software to remove the port. Have a look at this article:

https://confluence.atlassian.com/jirakb/integrating-jira-with-nginx-426115340.html

Ravi Prakash February 17, 2019

HI Alexey 

Could you tell me is there any other option to remove the port number from URL

Alexey Matveev
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.
February 17, 2019

This option is widely used. You could try to give the root access to the jira, confluence and bitbucket user and modify the server.xml, but it is not a recommended way and I never tried it.

Ravi Prakash February 17, 2019

Can we use the default ports (80 for HTTP and 443 for https) the port number doesn't display at the end of the URL in your browser?

Alexey Matveev
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.
February 17, 2019

If you follow the link I mentioned, you will be able to use the default ports.

Ravi Prakash February 17, 2019

how we can remove port number without using JIRA.

how is it possible

Alexey Matveev
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.
February 18, 2019

I am not sure I understand your question.

What application is running on  www.xyz.com:9201?

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.
February 18, 2019

There are two ways to do this in general.  With a proxy, or by running the Tomcat behind Jira in a way that exposes Jira on the standard ports.

Both methods don't really "get rid" of the port numbers.  Browsers (and other software that connect to remote systems) assume that when someone uses http and don't specify a port, then they mean "port 80".  And similarly for https and port 443.

Alexey has already given you a link for running Nginx as the proxy - that can take traffic on port 80 and proxy it back to Jira on port 9021 (assuming you're happy for that to be where Jira runs).

If you don't want to do that, then modifying the Tomcat is a matter of changing the port in the server.xml.  BUT, you will also then need to modify the security settings on the operating system in ways that most of us recommend you do  NOT (running Jira as a privileged user, disabling security systems, etc)

shehzad.iqbal April 17, 2019

How would we do the same for confluence?

Best,

Shehzad

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.
April 21, 2019

You do exactly the same thing - put a proxy in front of it (or let the Tomcat run on port 80 or 443, which is not recommended)

Suggest an answer

Log in or Sign up to answer