Skip to content

Commit

Permalink
nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoguanqi committed May 2, 2021
1 parent 1f7dc6f commit e71ced3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
反向代理
nginx 配置:
1.解压 nginx-1.18.0.zip
2.打开 nginx-1.18.0\conf\nginx.conf
```
server {
listen 80;
server_name localhost;
# 配置反向代理 --->开始<---
location ~ /core/ {
proxy_pass http://localhost:8110;
}
location ~ /sms/ {
proxy_pass http://localhost:8120;
}
location ~ /oss/ {
proxy_pass http://localhost:8130;
}
# 配置反向代理 --->结束<---
#charset koi8-r;
#access_log logs/host.access.log main;
```
3. 启动/停止
nginx-1.18.0目录下cmd

start nginx.exe //启动
nginx.exe -s stop //停止
nginx.exe -s reload //重新加载

0 comments on commit e71ced3

Please sign in to comment.