Skip to content

Instantly share code, notes, and snippets.

@linyongping
Created May 18, 2018 02:02
Show Gist options
  • Select an option

  • Save linyongping/2088a14260f5d00ed46c48839ecf2dfa to your computer and use it in GitHub Desktop.

Select an option

Save linyongping/2088a14260f5d00ed46c48839ecf2dfa to your computer and use it in GitHub Desktop.
##
# Put this file in /etc/nginx/conf.d folder and make sure
# you have a line 'include /etc/nginx/conf.d/*.conf;'
# in your main nginx configuration file
##
##
# Redirect to the same URL with https://
##
server {
listen 8888;
# Type your domain name below
server_name 192.168.31.63 mt-payment-admin.com;
location / {
# Set path
root /mnt/d/httpWork/mt-payment-pro/dist;
try_files $uri /index.html;
}
location /api/ {
proxy_pass http://192.168.2.151:9093;
proxy_http_version 1.1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment