Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: 前端市界 <[email protected]>
  • Loading branch information
wkylin authored Sep 20, 2024
1 parent 59ca277 commit e007ae4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ npm version [| major | minor | patch | premajor | preminor | prepatch | prerelea
server {
listen 8081;
#server_name localhost;
server_name www.promotion-web.com;
server_name www.pro.react.admin.com;
location / {
root /usr/local/var/www/promotion-web;
root /usr/local/var/www/pro-react-admin;
index index.html index.htm;
try_files $uri $uri/ /index.html @rewrites;
expires -1;
Expand All @@ -421,7 +421,7 @@ npm version [| major | minor | patch | premajor | preminor | prepatch | prerelea
}
# 接口转发,如果需要的话
#location ~ ^/api {
# proxy_pass http://www.wklin.com;
# proxy_pass http://www.wkylin.com;
#}
location @rewrites {
rewrite ^(.+)$ /index.html break;
Expand All @@ -431,7 +431,7 @@ npm version [| major | minor | patch | premajor | preminor | prepatch | prerelea
}
# SwitchHosts!
192.168.1.101 www.promotion-web.com
192.168.1.101 www.pro.react.admin.com
```
3. Nginx for Windows
Expand Down

0 comments on commit e007ae4

Please sign in to comment.