Skip to content

Instantly share code, notes, and snippets.

@devdilson
Created May 15, 2021 10:48
Show Gist options
  • Select an option

  • Save devdilson/e2383f1972b82003b8fcce692d2e4611 to your computer and use it in GitHub Desktop.

Select an option

Save devdilson/e2383f1972b82003b8fcce692d2e4611 to your computer and use it in GitHub Desktop.
Nginx Centos Reverse Proxy
load_module '/usr/lib64/nginx/modules/ngx_stream_module.so';
events {}
stream {
server {
listen 8484; # expose port
proxy_pass 127.0.0.1:8485; # port exposed in localhost
}
}
@devdilson

devdilson commented May 15, 2021

Copy link
Copy Markdown
Author
# Syntax <Server localhost>:<address>:<client machine port>
ssh <ServerIP> -i <Private key> -R 8485:localhost:80

@devdilson

Copy link
Copy Markdown
Author

yum install nginx -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment