mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-30 01:51:29 +08:00
更新 c1_docker运行nginx.md
This commit is contained in:
1 parent
a3d1b6afc0
commit
653f49f095
1 file changed
+7
-1
+7
-1
@@ -38,7 +38,7 @@ sudo docker exec nginx nginx -s reload # 重新加载配置
|
||||
location /uri {
|
||||
alias /path;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /uri/;
|
||||
try_files $uri $uri/ /uri/index.html;
|
||||
}
|
||||
```
|
||||
端口代理
|
||||
@@ -46,4 +46,10 @@ location /uri {
|
||||
location /uri/ {
|
||||
proxy_pass http://127.0.0.1:port/;
|
||||
}
|
||||
```
|
||||
重定向
|
||||
```
|
||||
location /uri {
|
||||
return 301 /uri/;
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user