Welcome! Log In Create A New Profile

Advanced

Simple question regarding rewrite rule

Posted by StSch 
Simple question regarding rewrite rule
May 05, 2015 03:03AM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready