21.09 应用配置

This commit is contained in:
zhanghongqing
2021-09-09 14:07:24 +08:00
parent 51d11d77a9
commit 643e2c4f82

View File

@@ -68,12 +68,17 @@ http {
server {
listen 9098;
server_name localhost;
if ($request_method = GET) {
return 302 https://$host:9097$request_uri;
}
proxy_set_header Host $http_host;
location / {
proxy_pass http://hos;
location /admin {
proxy_pass http://hos/admin;
}
location /hos {
if ($request_method = GET) {
return 302 https://$host:9097$request_uri;
}
proxy_pass http://hos/hos;
}
}