21.09 应用配置
This commit is contained in:
@@ -68,12 +68,17 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 9098;
|
listen 9098;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
if ($request_method = GET) {
|
|
||||||
return 302 https://$host:9097$request_uri;
|
|
||||||
}
|
|
||||||
proxy_set_header Host $http_host;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user