After setting up Nginx to proxy to JIRA, none of my assets (CSS, JS or images) load

This question is in reference to Atlassian Documentation: Integrating JIRA with Nginx

I set up the Nginx proxy as described here.

When I go to JIRA, anything at <base url>/s/ seems not to load. Most of the application's assets like CSS, JS and images seem to be found at this path.

Accessing JIRA directly, bypassing the proxy, works fine.

If I follow the URL of the assets (for example using the Networks tab of Chrome's debugging tools), I see a JIRA 404 page, rather than nginx.

My configurations:

&lt;Connector port="8080"
server {
    listen &lt;domain&gt;:80;
    server_name &lt;domain&gt;;
    location /jira {
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://localhost:8080/jira/;
        client_max_body_size 10M;

Where <domain> is the domain at which I wish to access JIRA

5 answers

1 accepted

I checked out my access logs for JIRA, located at /opt/atlassian/jira/logs/ which showed me requests similar to "GET /jira//s/d41d8cd98f00b204e9800998ecf8427e-CDN/[...]" - there is an extra slash by /jira//

So double-checking my nginx and JIRA config shows the only trailing slash - in the nginx config.

Changing proxy_pass http://localhost:8080/jira/ to proxy_pass http://localhost:8080/jira fixed it for me.

Steven Behnke Community Champion Sep 16, 2016

Whoo! Thanks for providing your solution! I've definitely done that before myself. >_<

Yeah, I think I had found some results that were similar but not exactly like my resolution. In particular, there is an Atlassian documentation that specifies how to fix that extra slash on the JIRA Tomcat server, but not if it's coming from nginx. Anyway, thought it might be useful!

0 votes
Steven Behnke Community Champion Sep 16, 2016

Can you share your configuration details?

Updated the question with config details

For me changing the proxy_pass directive did not solve the issue.

Here's my nginx.conf

location /jira {

                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header X-Forwarded-Server $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                client_max_body_size 10M;



and the error I get when accessing:

not found.


However, I think it's a nginx config issue, but I don't manage to solve it.


Do you also have Wordpress installed?

0 votes

I had this issue as well, but checking the configuration file I forgot to comment the followind lines:


 # pass the PHP scripts to FastCGI server listening on
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
# # With php7.0-cgi alone:
# fastcgi_pass;
# # With php7.0-fpm:
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;


#location = /favicon.ico { log_not_found off; access_log off; }
#location = /robots.txt { log_not_found off; access_log off; allow all; }
#location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
# expires max;
# log_not_found off;

After that it stared to work

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,120 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