Proxy Settings In nginx For ServiceDesk

Does anyone have a good "recipe" for setting up nginx to proxy or redirect users to use a nicer base URL, IOW to change to something better, like

I tried the setup below, and while it does work, the user gets redirected by JIRA via a 303 and the URL changes to the long form.

server {
        listen          80;
        server_name     helpdesk.*;
        access_log      off;

        client_max_body_size    10M;

        return 301$request_uri;

server {
        listen          443 ssl;
        access_log      off;

        client_max_body_size    10M;

        ssl_certificate         /######;
        ssl_certificate_key     /######;

        location / {
                proxy_pass              http://localhost:8080/servicedesk/customer/portal/3;
                proxy_set_header        Host            $host;
                proxy_set_header        X-Real-IP       $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;



3 answers


your solution hide original JIRA address and stay on:

i can't get it work that way.

thanks. norbert

The above shouldn't "hide" anything. For example, on my server, I can still reach JIRA via IP and other valid addresses/URLs. The only reason I use nginx is to (try to) present users with a user-friendly URL.

did you ever find a better solution for this?

Tom, I have not. The user-friendly, root URL seemed good enough to get people started on the portal.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,111 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot