Hello,
I am trying to get nginx to work with shellinabox. I guess what I am really having trouble with is proxy_pass, such that when I enter the URL;
It loads the shellinabox page from port 4200. I used to have this working with Apache but cannot figure it out with Nginx.
At present I have created a server block which I have been playing around with, but I havent been able to get any response from it;
Code
server {
server_name shell;
listen 80;
listen [::]:80;
location ~ ^/shell/ {
proxy_pass http://localhost:4200;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Alles anzeigen
The reason I need this is because my office blocks port 6789 . . . . so I need to access it through the /shell sub URL if I want to access my CLI from work - which I don sometimes if things go wrong.
Does anyone have a solution for this?
C