-
Bug
-
Resolution: Unresolved
-
Major
-
None
Greetings ,
We are facing issues with some paths (eg folders) with Blue Ocean , running Jenkins behind Nginx.
Please find below the Nginx configurations:
Can you please confirm how the suggested snippet from (https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Nginx) should be used in the proxy configurations :
or if some other suggestions to fix the problem.
if ($request_uri ~ * "/blue(/.*)") {
proxy_pass http://YOUR_SERVER_IP:YOUR_JENKINS_PORT/blue$1;
break;
}
################################################################################
server {
listen 8999;
ssl on;
ssl_certificate /swa/certs/project.tool.crt;
ssl_certificate_key /swa/certs/project.tool.key;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
keepalive_timeout 60;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
proxy_buffering off;
access_log /var/log/nginx/jenkins_access.log;
port_in_redirect off;
client_max_body_size 0;
client_body_buffer_size 128k;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
location /
{ proxy_pass [http://jenkins:8080/]; proxy_read_timeout 900; proxy_max_temp_file_size 0; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; }}
The error while accessing the job inside folder through blue ocean :
The requested URL /LPFG/blue/organizations/jenkins/product-desktop-air-operations/spa-air-flight-status was not found on this server.
Apache/2.4.25 (Debian) Server at jenkins-tools.swacorp.com Port 443
[JENKINS-54704] Problem with some paths (folder) blue ocean jenkins Nginx reverse proxy
Description |
Original:
Greetings , We are facing issues with some paths (eg folders) with Blue Ocean , running Jenkins behind Nginx. Please find below the Nginx configurations: *Can you please confirm where the suggested solution should be defined in the below configurations :* *or if some other suggestions to fix the problem.* {{if}} {{($request_uri ~* }}{{"/blue(/.*)"}}{{) {}} {{ }}{{proxy_pass http:}}{{//YOUR_SERVER_IP:YOUR_JENKINS_PORT/blue$1;}} {{ }}{{break}}{{;}} {{}}} *################################################################################* server { listen 8999; ssl on; ssl_certificate /swa/certs/project.tool.crt; ssl_certificate_key /swa/certs/project.tool.key; ssl_protocols TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; keepalive_timeout 60; sendfile on; tcp_nopush on; tcp_nodelay on; proxy_buffering off; access_log /var/log/nginx/jenkins_access.log; port_in_redirect off; client_max_body_size 0; client_body_buffer_size 128k; client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m; location / { proxy_pass [http://jenkins:8080/]; proxy_read_timeout 900; proxy_max_temp_file_size 0; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; } } *The error while accessing the job inside folder through blue ocean :* The requested URL /LPFG/blue/organizations/jenkins/product-desktop-air-operations/spa-air-flight-status was not found on this server. ---- Apache/2.4.25 (Debian) Server at [jenkins-tools.swacorp.com|http://jenkins-tools.swacorp.com/] Port 443 |
New:
Greetings , We are facing issues with some paths (eg folders) with Blue Ocean , running Jenkins behind Nginx. Please find below the Nginx configurations: *Can you please confirm how the suggested snippet from ([https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Nginx)] should be used in the proxy configurations :* *or if some other suggestions to fix the problem.* {{if}} {{($request_uri ~ ** }}*{{"/blue(/.}}*{{)"}}{{) {}} {{ }}{{proxy_pass http:}}{{//YOUR_SERVER_IP:YOUR_JENKINS_PORT/blue$1;}} {{ }}{{break}}{{;}} {{}}} *################################################################################* server { listen 8999; ssl on; ssl_certificate /swa/certs/project.tool.crt; ssl_certificate_key /swa/certs/project.tool.key; ssl_protocols TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; keepalive_timeout 60; sendfile on; tcp_nopush on; tcp_nodelay on; proxy_buffering off; access_log /var/log/nginx/jenkins_access.log; port_in_redirect off; client_max_body_size 0; client_body_buffer_size 128k; client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m; location / { proxy_pass [http://jenkins:8080/]; proxy_read_timeout 900; proxy_max_temp_file_size 0; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; } } *The error while accessing the job inside folder through blue ocean :* The requested URL /LPFG/blue/organizations/jenkins/product-desktop-air-operations/spa-air-flight-status was not found on this server. ---- Apache/2.4.25 (Debian) Server at [jenkins-tools.swacorp.com|http://jenkins-tools.swacorp.com/] Port 443 |