Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Simple question regarding rewrite rule

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>