I'm using Jenkins 1.635 which sits behind Nginx 1.8.0 (find attached its 
configuration): jenkins is started with 
-Dhudson.security.csrf.requestfield=crumb so that nginx doesn't delete that 
cookie

It works ALMOST everything

What doesn't is for example the Manage Plugins page. The url shown by the 
browser in the corner is http://jenkins:9090/pluginManager but once I click 
I got redirected to http://jenkins/pluginManager which leads to a 404

Attached is also a dump of the two requests made by the browser. As you can 
see, jenkins is issuing a 302 to http://jenkins/pluginManager and I don't 
know why.

Best regards

Federico

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2a8ed197-4a0b-48a1-ac30-9cfbab592e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
server {
        listen       9090;
        server_name  jenkins;

        location / {
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-NginX-Proxy true;
                proxy_set_header X-Forwarded-Proto $scheme;

                proxy_pass http://127.0.0.1:8080;
                proxy_read_timeout 90;
                proxy_redirect default;
        }
}

http://jenkins:9090/pluginManager

GET /pluginManager HTTP/1.1
Host: jenkins:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 
Firefox/41.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://jenkins:9090/manage
Cookie: iconSize=16x16; 
__utma=93500365.1977979511.1445873143.1445873143.1446112795.2; 
__utmz=93500365.1445873143.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
JSESSIONID.f9bb370b=18dhrnwb723x4nslsu0pwxj5m; screenResolution=1920x1200
Connection: keep-alive

HTTP/1.1 302 Found
Server: nginx/1.8.0
Date: Fri, 30 Oct 2015 08:27:47 GMT
Content-Length: 0
Connection: keep-alive
X-Content-Type-Options: nosniff
Location: http://jenkins/pluginManager/
----------------------------------------------------------
http://jenkins/pluginManager/

GET /pluginManager/ HTTP/1.1
Host: jenkins
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 
Firefox/41.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://jenkins:9090/manage
Cookie: iconSize=16x16; 
__utma=93500365.1977979511.1445873143.1445873143.1446112795.2; 
__utmz=93500365.1445873143.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
JSESSIONID.f9bb370b=18dhrnwb723x4nslsu0pwxj5m; screenResolution=1920x1200
Connection: keep-alive

HTTP/1.1 404 Not Found
Server: nginx/1.8.0
Date: Fri, 30 Oct 2015 08:27:47 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Content-Encoding: gzip
----------------------------------------------------------

Reply via email to