Skip to content

Instantly share code, notes, and snippets.

@asoltys
Created October 14, 2019 15:23
Show Gist options
  • Save asoltys/16481e86e5799dd6d28df0cf84993eeb to your computer and use it in GitHub Desktop.
Save asoltys/16481e86e5799dd6d28df0cf84993eeb to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name althea;
error_page 405 =200 $uri;
location / {
proxy_pass http://127.0.0.1:3005;
}
location /backend {
rewrite ^/backend(.*) $1 break;
proxy_pass http://192.168.10.1:4877$uri$is_args$args;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment