Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira behind Nginx goes scrambled

Danny Koobrick
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2018

Hello there,

 

I have configured our Jira integration with nginx as a reverse proxy as said here:

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

 

But when I try my proxy address it shows me an scrambled page full of like:

)�8��ċ91&���L�������ƌ�C+��sքU鸞��Τ]��ENF����J0-�C$6laU��$�٬�D�rSAͺ�J~�K�tRI���> �G����,� �c�hz/K1=l�8 l^�V��H�����W��0�������u�B@qP�

 

Jira address itself is working fine BTW.

 

my configuration on both sides are as follows

server.xml:

 

<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="80" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" proxyName="[my reverse proxy url]" proxyPort="80" />

 

nginx.conf:

 

### Jira ###
        server {
        listen       80 default_server;
        server_name  [my jira machine FQDN];

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

                #proxy_buffering off;
                proxy_buffer_size 10k;
                large_client_header_buffers 4 10k;
      
        location / {

                auth_basic "Username and Password Required";
                auth_basic_user_file    /etc/nginx/.htpasswd;

                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://[my jira internal IP address];
                client_max_body_size 30M;
        }



What is the problem? Anyone has any idea?

1 answer

0 votes
Shankar Asam {Appfire}
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.
June 11, 2018

lets suppose you access jira as http://jira.yourcompany.com 

 

DNS record;

jira.yourcompany.com IN A <ip address of your nginx>

 

Server.xml;

<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="80" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" proxyName="jira.yourcompany.com" proxyPort="80" scheme="http" />

 

 nginx.conf:

server_name  jira.yourcompany.com

...

....

proxy_pass http://[my jira internal IP address]:8080

 

Restart JIRA / nginx  - hope this helps

Suggest an answer

Log in or Sign up to answer