优化代码

Signed-off-by: HITSword <admin@huayizhiyun.com>
This commit is contained in:
HITSword
2020-01-08 18:30:35 +08:00
parent 4b5161ee97
commit 9f50b69cc4
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -97,6 +97,11 @@ function hyproxy_make($server_name){//done
server_name %s;
index %s;
#error_page
location /ErrorPages/ {
alias /home/wwwroot/index/etc/html/ErrorPages/;
}
location / {
default_type text/html;
proxy_cache hyproxy;
@@ -120,6 +125,11 @@ function hyproxy_make($server_name){//done
server_name %s;
index %s;
#error_page
location /ErrorPages/ {
alias /home/wwwroot/index/etc/html/ErrorPages/;
}
location / {
default_type text/html;
proxy_set_header X-Real-IP $remote_addr;