wrong avatar url

Jinxi Cheng September 5, 2017

Hello, I have a problem with the avatar display. See screenshot. 

the url for jira is https://jira.mysite.com/ but jira is trying to load the avatar over http http://jira.mysite.com. I checked the base url of jira and it is configured correctly to https://jira.mysite.com/. Here is my jira server setup

internet --> modem/router[port mapping 443] ---> nginx server with reverseproxy ---> jira server [running op port 8080].

Any help is appreciated

image.png

1 answer

1 accepted

2 votes
Answer accepted
Jeremy M
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.
September 5, 2017

Dear Jinxi,

What have you entered in your server.XML? Did you enter a HTTPS redirect port and such?

Friendly Regards,

Jeremy Mooiman

Jinxi Cheng September 5, 2017

This is my config in server.xml

 

<Connector port="8080"

                  maxThreads="150"
                  minSpareThreads="25"
                  connectionTimeout="20000"

                  enableLookups="false"
                  maxHttpHeaderSize="8192"
                  protocol="HTTP/1.1"
                  useBodyEncodingForURI="true"
                  redirectPort="8443"
                  acceptCount="100"
                  disableUploadTimeout="true"
                  bindOnInit="false"/>

Jeremy M
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.
September 5, 2017

Dear Jinxi,

You should add the scheme and such;

scheme="https"
proxyName="yoursite.example.com"
proxyPort="443"

So;

<Connector port="8080"

                  maxThreads="150"
                  minSpareThreads="25"
                  connectionTimeout="20000"

                  scheme="https"
                  proxyName="yoursite.example.com"
                  proxyPort="443"

                  enableLookups="false"
                  maxHttpHeaderSize="8192"
                  protocol="HTTP/1.1"
                  useBodyEncodingForURI="true"
                  redirectPort="8443"
                  acceptCount="100"
                  disableUploadTimeout="true"
                  bindOnInit="false"/>

Friendly Regards,

Jeremy Mooiman

Jinxi Cheng September 5, 2017

that solved the issue. Thank you! :-) :-) :-) :-)

Suggest an answer

Log in or Sign up to answer