parent
4b5161ee97
commit
9f50b69cc4
|
|
@ -27,7 +27,7 @@ function amh_module_install()
|
||||||
rm -rf /root/amh/modules/$module_name;
|
rm -rf /root/amh/modules/$module_name;
|
||||||
done;
|
done;
|
||||||
#Delete conflict modules
|
#Delete conflict modules
|
||||||
if [ -f "/root/amh/modules/limit_req2_nginx_module-1.2/InstallComplete" ]; then
|
if ls /root/amh/modules/ | grep -q 'limit_req2_nginx_module-1.2'; then
|
||||||
amh module limit_req2_nginx_module-1.2 uninstall force;
|
amh module limit_req2_nginx_module-1.2 uninstall force;
|
||||||
amh module limit_req2_nginx_module-1.2 delete y;
|
amh module limit_req2_nginx_module-1.2 delete y;
|
||||||
fi;
|
fi;
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,11 @@ function hyproxy_make($server_name){//done
|
||||||
server_name %s;
|
server_name %s;
|
||||||
index %s;
|
index %s;
|
||||||
|
|
||||||
|
#error_page
|
||||||
|
location /ErrorPages/ {
|
||||||
|
alias /home/wwwroot/index/etc/html/ErrorPages/;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
proxy_cache hyproxy;
|
proxy_cache hyproxy;
|
||||||
|
|
@ -120,6 +125,11 @@ function hyproxy_make($server_name){//done
|
||||||
server_name %s;
|
server_name %s;
|
||||||
index %s;
|
index %s;
|
||||||
|
|
||||||
|
#error_page
|
||||||
|
location /ErrorPages/ {
|
||||||
|
alias /home/wwwroot/index/etc/html/ErrorPages/;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue