Jenkins Url changes when going to /jenkins/configureSecurity/

I have set up nginx as a reverse proxy for our jenkins server. Nginx is using proxy_pass to the jenkins server so it should just be forwarding the requests and responses.

When I go to (hitting the nginx server) the url is fine. I can click on the url for each project and the url will still look like: Even going to jenkins configure is fine.

The problem:
When I click on Configure Global Security the url changes to jenkin's sever IP. This wouldn't be such an issue but the Google Login Plugin is hitting it as well and my OAuth callbacks are set to hit the nginx server.

What I've Done:

  • I have set the Jenkins URL in configure to be
  • Made sure the JENKINS_ARGS have the --prefix=/jenkins
  • Restarted Jenkins after setting the url in the configuration.
  • Verified jenkins.model.JenkinsLocationConfiguration.xml has the correct location

Any ideas or suggestions would be amazing! Thank You!

-------------Problems Reply------------

The issue was nginx and the way I was redirecting.
I was using:

location /jenkins/ {
proxy_pass $scheme://;

But needed:

location /jenkins/ {
proxy_pass $scheme://;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Category:nginx Views:1 Time:2016-07-31

Related post

  • Url changes when I hit enter 2015-01-03

    I'm trying to go to However, when I hit enter, the url changes to and I'm directed to an error page. I tried the url on my iPhone and it took me to the correct page, so I know that's not the pr

  • Rails - confused by URL change when model validations fail 2011-10-20

    I've got a User resource where :name is a required attribute on the model. If I try to create a new user without a name, then the validation fails and the error messages are displayed at the top of the form as expected, but the URL of the page change

  • GWT urls change when deployed to tomcat 2011-06-10

    Simple question, maybe someone knows: In GWT devmode, my urls look like this: http://myserver/myapp/myservice When I run 'ant war' and deploy that war on tomcat, they mysteriously change to: http://myserver/myapp/myapp/myservice Everything still work

  • Outlook 2011 URL Changing when in the network and out 2014-05-01

    Exchange 2010 - Outlook 2011 When the user is local on the network the oulook clients URL is exchangeserver.domain.local when you leaves the network he has to manually change the URL to when he return to the local network the URL aut

  • Word margins change when going from 2003 to 2010 2014-09-08

    I currently have some computers that run office 2010 and others that have 2003. I have a word document that changes the margins when moved between the two which makes the formatting different when opened in the other version. If i set it to look righ

  • Why does the Font size change when goes into screen saver mode? 2014-11-30

    Windows 7, My computer changes font, and eveything gets bigger on the second or third time it goes into screen saver mode.. --------------Solutions------------- Hi Rick Tozier, The issue might be with the graphics card drivers. Perform the following

  • Outlook Signature Issue where URL changes when inserted 2015-01-11

    I have a client on Citrix who uses Outlook 2010. He created a signature with a link to a document on one of the Network Drives. When he inserts the signature into an e-mail the URL of the link changes. For example HTTP://Microsoft .com changes to ...

  • URL Changing when configured for multiple languages 2009-07-28

    I have configured by using this link. However the URL is changing as http://server/EN/Pages/default.aspx for the default page. I want the URL not to change, still I need to have my site displayed for multiple languages. Any Suggestions? -------------

  • Date and Time changes when going on line 2012-04-06

    On start up date and time on computer is fine. When I go on line for some unknown reason date and time will move forward 12 hours. This does not always happen as some time it will go one, two or three days without changing. Very frustrating as it aff

  • Mapview zoom level changes when going to other activity? 2012-03-31

    In one of my first activity i had a small portion of mapview and i did it. when clicking on the mapview it sholud load another activity which contains the full mapview. (Second activity).i second activity if i zoom the map and go back to the first ac

  • Print Area changes when going from Windows 7 to Windows Vista 2012-10-15

    We have an excel spreedsheet table set up that tons of people use. It has a print area set up to print only parts of the document. However, when I have a Windows 7 user fill out the table and save it, and then when the Windows Vista user opens it the

  • Handle url change by javascript 2011-02-10

    Is it possible to handle URL change when some link on web page is being clicked to get the new URL and somehow process it? Also can I do the same thing but on some iframe inside my page? I know that I can't execute any javascript on iframe if it's ur

  • Green Lock Beside URL Changes to Grey Lock with Yellow Triangle 2014-03-01

    Hello, When I sign in to outlook, and I'm looking at the list of emails in my inbox, there is normally a green lock icon beside the site URL. In the last week or so, this green lock icon has started changing to a grey lock with a yellow triangle in f

  • Frameset causes URL to not change when navigating through the pages. Is there a way to get around this? 2011-01-21

    We have a website and one of its pages contains a frameset (we need to get data from another website). The problem is, once you get to the page that contains the frameset, the URL no longer changes even if you click on other links. It keeps on showin

  • SharePoint is throwing access denied when url changes from http://site to 2011-07-14

    We have a SharePoint 2007 site which has FBA configured (extended the webapp to different zone). The problem is that a user has to authenticate twice when the URL changes from http://site to i.e if the user enters http://site it asks

  • Need the background to change when the mouse goes over the selected tab. How? 2011-10-11

    I want the Tags tab to have the same background as the Search tab when the mouse is over it, how do I do this? I have the search tab already with a background as a default but when going to click on Tags how can I get the same background that is on S

  • MVC - how to make the url not to change when a method is called 2012-03-11

    I have login controller,model and view url http://mySite/login Now when i am at http://mySite/controller it shows the login form and then when i submit the form the run method is called so the url change to http://mySite/login/run how can i stop this

  • How do I change the default City and State location that auto populates when going to various sites? 2013-12-07

    How do I change the default City and State location that auto populates when going to various sites? For example, when I go the look for flights it auto populates, Midland MI when I’m located in Indianapolis, IN. Midland is where our home office is.

  • Backbone: When i write an url in browser's url bar its goes directly to server, some config needed? 2012-02-26

    The site is working ok. It is routing urls ok when i click on links or by using the .navigate() function. But... if i write the URL in the browser's url bar (tried with chrome / firefox) i get a response from the server: Cannot GET /route (i'm using

  • Alternative to jQuery ready() for detecting that the page anchor in the URL changes 2009-08-20

    Does anyone know how to get a page load event to fire if the page anchor in the URL changes, i.e., going from to when using the Back button? I tried the code at the bottom (the history.navigatio

  • Jquery, AJAX and URL changes 2010-04-03

    Jquery, AJAX and URL changes... I have a gallery, and when the image change i would like to change my url to "#image_id=321" and when i load an url with this appended: "#image_id=321", loads the image with id 321. is this possible to make without the

  • mod_rewrite showing a URL change although I can't see why 2011-03-25

    I'm trying to simply get to be passed to a Rails app as /s2?alt_url=abc and I don't want the URL to appear to have changed in the browser. I've been going around in circles with this for a long time now. I can get the rewrite to work (

  • URL change ajax call in Facebook 2011-06-03

    In facebook, whenever you navigate to a different URL (in some situations), the URL changes but there is no feeling sensed as going to a different page. For example: when we view pictures in facebook, and when we move to the next image the URL change

  • PHP header(Location: -): Force URL change in address bar 2011-09-19

    I'm currently working on a mobile site with authentication using PHP sessions with a database. I have a login page with a form that goes to server_login.php on submit. The php file then creates some session data (store in $_SESSION), and redirects th

Copyright (C), All Rights Reserved.

processed in 0.147 (s). 11 q(s)