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

How to prevent a user from browsing the Jira/Confluences sites when URL has port?

Would like that the user is only able to reach the site via jira.domain.com, not jira.domain.com:port. If they go to jira.domain.com:port, then prefer a redirect to jira.mydomain.com or something like that.

Additional details:

My configuration is with reverse proxy via Apache htaccess. 

So in the domain directory, I have a htaccess file with:

RewriteRule ^(.*)$ http://domain.com:port/$1 [L,P]

1 answer

1 accepted

0 votes
Answer accepted
Daniel Eads Atlassian Team Sep 20, 2019

Hi Lisa,

I understand you've got Apache running in front of your Atlassian applications. That's great - reverse proxies are helpful in fine-tuning how people access your applications.

Jira and Confluence need to be able to listen to connections locally so they can process requests from Apache. They'll still need to serve Apache on the ports they currently have configured. What you're going to want to do is configure the network/firewall in your environment to not serve those ports outside localhost.

I wouldn't sweat too much about rewrite rules in your situation unless there's a long history of people bookmarking URLs with the port attached. Configuring a firewall such that Apache listens to external connections on a particular port that's still in use internally on localhost by Jira/Confluence would be... difficult. Instead, simply providing the new link or retraining users to not use the port would be simpler.

How you go about this is highly dependent on the operating system you're running on and what the overall server environment looks like. If you have a networking team or people managing VM infrastructure (if this server is a VM), they may be able to assist in simply closing non-local incoming access on the ports Jira and Confluence are using. Your Apache instance would still listen for connections on port 80 (and port 443 if you enable HTTPS) and proxy them to the Atlassian applications.

Cheers,
Daniel

Suggest an answer

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

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

881 views 7 24
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