mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-30 07:41: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 {
|
location /uri {
|
||||||
alias /path;
|
alias /path;
|
||||||
index index.html;
|
index index.html;
|
||||||
try_files $uri $uri/ /uri/;
|
try_files $uri $uri/ /uri/index.html;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
端口代理
|
端口代理
|
||||||
@@ -47,3 +47,9 @@ location /uri/ {
|
|||||||
proxy_pass http://127.0.0.1:port/;
|
proxy_pass http://127.0.0.1:port/;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
重定向
|
||||||
|
```
|
||||||
|
location /uri {
|
||||||
|
return 301 /uri/;
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in new issue
Block a user