Created
May 18, 2018 02:02
-
-
Save linyongping/2088a14260f5d00ed46c48839ecf2dfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| # 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