Forums

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

JIRA and IIS URL Rewrite

Alexander Riggs January 5, 2015

When using JIRA with URL Rewrite so I can use JIRA without a port number, none of the styling loads when using it externally from the network. So I looked into the code, and found that it was using the internal IP address of the server to load the styling. Is there anyway around this?

 

You will notice all of the 10.175.3.22:5927's in the following block of code:

 

[{"hasNonHiddenUserPrefs":false,"color":"color1","column":0,"colorUrl":"http:\/\/10.175.3.22:5927\/rest\/dashboards\/1.0\/10000\/gadget\/10000\/color","title":"Introduction","userPrefs":{"action":"http:\/\/10.175.3.22:5927\/rest\/dashboards\/1.0\/10000\/gadget\/10000\/prefs","fields":[]},"loaded":true,"gadgetUrl":"http:\/\/10.175.3.22:5927\/rest\/dashboards\/1.0\/10000\/gadget\/10000","renderedGadgetUrl":"http:\/\/10.175.3.22:5927\/plugins\/servlet\/gadgets\/ifr?container=atlassian&mid=10000&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3AWZbB8SsCQCDB7iUGL%2Ff0K6%2FwmtyhbX6MD5yzTC0nvcu8lxoLnu44gXiPiER461hoY5LoyJDZxGS5bxuJSi0Yddk3pIeWqYJB%2BC5Ed0O1Fjz%2BrAyCql4MAzkpyr3YNbgibEYyXnM80f%2BOXMU7EWxAlN%2FuwEdWIsJVauEI7BtLjzrHPmWN93xNZ3Q1BVCLYBw2133FFim6WbpqWU%2FF1EzF2ya6IKQtKhX0uy19wtF9A1LfPTO0%2FUgJ9s5z1DXAADp0XIpOIL2sfyveRbFYQQWb5Ced7jc%3D&url=http%3A%2F%2F10.175.3.22%3A5927%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.jira.gadgets%3Aintroduction-gadget%2Fgadgets%2Fintroduction-gadget.xml&libs=auth-refresh","isMaximizable":false,"id":"10000","gadgetSpecUrl":"rest\/gadgets\/1.0\/g\/com.atlassian.jira.gadgets:introduction-gadget\/gadgets\/introduction-gadget.xml","height":100},{"hasNonHiddenUserPrefs":false,"color":"color1","column":1,"colorUrl":"http:\/\/10.175.3.22:5927\/rest\/dashboards\/1.0\/10000\/gadget\/0\/color","title":"Login","userPrefs":{"action":"http:\/\/10.175.3.22:5927\/rest\/dashboards\/1.0\/10000\/gadget\/0\/prefs","fields":[{"displayName":"isPublicMode","name":"isPublicMode","type":"hidden","value":"false","required":false},{"displayName":"isElevatedSecurityCheckShown","name":"isElevatedSecurityCheckShown","type":"hidden","value":"false","required":false},{"displayName":"loginFailedByPermissions","name":"loginFailedByPermissions","type":"hidden","value":"false","required":false},{"displayName":"externalUserManagement","name":"externalUserManagement","type":"hidden","value":"false","required":false},{"displayName":"loginSucceeded","name":"loginSucceeded","type":"hidden","value":"false","required":false},{"displayName":"allowCookies","name":"allowCookies","type":"hidden","value":"true","required":false},{"displayName":"externalPasswordManagement","name":"externalPasswordManagement","type":"hidden","value":"","required":false},{"displayName":"captchaFailure","name":"captchaFailure","type":"hidden","value":"false","required":false},{"displayName":"isAdminFormOn","name":"isAdminFormOn","type":"hidden","value":"false","required":false}]},"loaded":true,"gadgetUrl":"http:\/\/10.175.3.22:5927\/rest\/dashboards\/1.0\/10000\/gadget\/0","renderedGadgetUrl":"http:\/\/10.175.3.22:5927\/plugins\/servlet\/gadgets\/ifr?container=atlassian&mid=0&country=US&lang=en&view=default&view-params=%7B%22writable%22%3A%22false%22%7D&st=atlassian%3AIVXTN5o0JmDiMoSgTM4nrpbAL7vlR68oDEPxiDylCBdh2zzvQOZqp8BqGy2q5pnJKdgeuLFQ7YTwBF%2F18gSKOalm7EM3IxmegRDCNKOVDz3YC38ZoHSQr5574VBn5aJQ8B1xBkUcy%2F3nJDXQ5CVtfMLuqGqduPUYamAkAhkRel0J2ZHB9aXyduVPLuWGkyXL1K0YL2IbGUzSzNKVgXq4KZUm200%3D&up_isPublicMode=false&up_isElevatedSecurityCheckShown=false&up_loginFailedByPermissions=false&up_externalUserManagement=false&up_loginSucceeded=false&up_allowCookies=true&up_externalPasswordManagement=&up_captchaFailure=false&up_isAdminFormOn=false&url=http%3A%2F%2F10.175.3.22%3A5927%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.jira.gadgets%2Fgadgets%2Flogin.xml&libs=auth-refresh","isMaximizable":false,"id":"0","gadgetSpecUrl":"rest\/gadgets\/1.0\/g\/com.atlassian.jira.gadgets\/gadgets\/login.xml","height":100}],"writable":false}                                                                 ]
        });

 

 

Is there anything I can do about this to make it easier to get to?

1 answer

0 votes
Nic Brough -Adaptavist-
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.
January 5, 2015

What have you set the JIRA "base url" to?

Alexander Riggs January 5, 2015

the actual address (not the IP). Everything works when I access it via the url with the port, its just when I use the URL rewrite.

Suggest an answer

Log in or Sign up to answer