this is my current setting,
location /jenkins {                                                                                                                                                                                  
                -sharp First attempt to serve request as file, then                                                                                                                                                               -sharp as directory, then fall back to displaying a 404.                                                                                                                                          
                -sharp try_files $uri $uri/ =404;                                                                                                                                                                 
                include             /etc/nginx/proxy_params;                                                                                                                                                 
                proxy_pass          http://localhost:8080/;                                                                                                                                                  
                proxy_read_timeout  90s;                                                                                                                                                                     
                -sharp Fix potential "It appears that your reverse proxy set up is broken" error.                                                                                                                 
                proxy_redirect      http://localhost:8080/ http://www.example.com/jenkins;                                                                                                                
        }with this setting, I can access http://www.example.com/jenkins, but all the requests in it is that leads to http://www.example.com/. In fact, it should be directed to http://www.example.com/jenkins, so how to write rewrite rule, so that only / jenkins will not be changed, and other url will add / jenkins/?
in front of it.