Skip to content

Commit

Permalink
modify nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
qliang0816 committed Mar 21, 2018
1 parent 1ca2d48 commit 5ef1095
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nginx/sites/default.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# upstream server-api{
# # api 代理服务地址
# server 127.0.0.1:81;
# }
server {
# 监听端口
listen 80 default_server;
Expand All @@ -21,6 +25,15 @@ server {
include fastcgi_params;
}

# 匹配 api 路由的反向代理到API服务
# location ^~/api/ {
# proxy_pass http://server-api/;
# }

# location ^~/storage/ {
# proxy_pass http://server-api/storage/;
# }

location ~ /\.ht {
deny all;
}
Expand Down

0 comments on commit 5ef1095

Please sign in to comment.