Configuration reverse proxy

Hello,
I wanted to know how to modify the nginx settings to have redirects like [monip]/plex to go to [monip]:32400 or [monip]/wolfvic to go to the folder /var/www/html/wolfvic. I tried to create a new file in /etc/nginx/sites-available as well as directly in gladys-ssl but it doesn’t work, when it doesn’t make a google search, it redirects to http://plex. It’s very strange, no matter what I put after the / the url changes to remove my ip.
I searched the net but I can’t see where I’m stuck…

my gladys-ssl file:

server {
listen 80;
listen [::]:80;
return 302 https://$server_name$request_uri;
}

server {

listen 443 ssl;
listen [::]:443 ssl;
include /etc/nginx/snippets/self-signed.conf;
include /etc/nginx/snippets/ssl-params.conf;

#Assets
location ~ ^/(fonts|hooks|min|img|js|styles|templates)/ {
root /home/pi/gladys/www;
gzip_static on;
expires 30m;
add_header Cache-Control public;
# access_log /dev/null;
}

gzip on;
gzip_disable « msie6 »;

gzip_comp_level 4;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
image/svg+xml;

client_header_timeout 10;
client_body_timeout 10;
keepalive_timeout 10 10;
send_timeout 10;

location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection « upgrade »;
proxy_intercept_errors off;
error_page 502 /502.html;
}

location = /502.html {
internal;
root /usr/share/nginx/html;
}

location /wolfvic/ {
root /var/www/html/wolfvic;
}
}

other file:

ssl_certificate /etc/nginx/nginx.crt;
ssl_certificate_key /etc/nginx/nginx.key;
server {
listen 80;
listen [::]:80;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443;
listen [::]:443;
server_name _;
ssl on ;

   location /wolfvic/ {
           root /var/www/html/wolfvic;
          proxy_pass http://127.0.0.1/wolfvic;
           proxy_set_header        Host $host;
           proxy_set_header        X-Forwarded-For >$proxy_add_x_forwarded_for;
           proxy_connect_timeout 30;
           proxy_send_timeout 30;
   }
   location /plex/ {
           proxy_pass http://127.0.0.1:32400;
           proxy_set_header Host $host;
           proxy_set_header X-Forwarded-For >$proxy_add_x_forwarded_for;
           proxy_connect_timeout 30;
           proxy_send_timeout 30;
   }

}
Have you already tried?