pull/278/head
midoks 2 years ago
parent 088b7425d7
commit 6ebcb8e005
  1. 3
      .gitignore
  2. 2
      plugins/openresty/index.py
  3. 6
      rewrite/nginx/phpwind.conf

3
.gitignore vendored

@ -107,7 +107,6 @@ venv.bak/
tmp/*
*.swp
*.zip
scripts/init.d/mw
logs/*
data/*.db
data/control.conf
@ -132,7 +131,9 @@ include
share
pip-selfcheck.json
scripts/init.d/mw
scripts/mdserver-web
data/api_login.txt
data/sessions
data/ssl.pl

@ -300,7 +300,7 @@ def runInfo():
# 取Openresty负载状态
try:
url = 'http://127.0.0.1/nginx_status'
result = mw.httpGet(url)
result = mw.httpGet(url, timeout=1)
tmp = result.split()
data = {}
data['active'] = tmp[2]

@ -1,4 +1,4 @@
location / {
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;
}
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;
}
Loading…
Cancel
Save