I am a total beginner (so please excuse this likely simple question). I want to use Nginx as a reverse proxy to access another service (Shellinabox). For this I have the following configuration:
location /shell/ {
proxy_pass https://127.0.0.1:4200;
rewrite /shell/(.*) /$1 break;
}
Is there a more elegant solution for the rewrite rule? Maybe something similar to this?
rewrite ^(.*)$ /$1;
Regards,
Steffen
location /shell/ {
proxy_pass https://127.0.0.1:4200;
rewrite /shell/(.*) /$1 break;
}
Is there a more elegant solution for the rewrite rule? Maybe something similar to this?
rewrite ^(.*)$ /$1;
Regards,
Steffen