mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:29:25 +08:00
update
This commit is contained in:
@@ -441,9 +441,17 @@ class site_api:
|
||||
content = content.replace('{$LOGPATH}', logsPath)
|
||||
public.writeFile(vhost_file, content)
|
||||
|
||||
rewrite_content = '''
|
||||
location /{
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^(.*)$ /index.php/$1 last;
|
||||
break;
|
||||
}
|
||||
}
|
||||
'''
|
||||
rewrite_file = self.setupPath + \
|
||||
'/openresty/nginx/conf/rewrite/' + self.siteName + '.conf'
|
||||
public.writeFile(rewrite_file, '')
|
||||
public.writeFile(rewrite_file, rewrite_content)
|
||||
|
||||
def add(self, webname, port, ps, path, version):
|
||||
|
||||
|
||||
@@ -153,12 +153,7 @@ function webAdd(type) {
|
||||
var data = $("#addweb").serialize()+"&port="+webport+"&webinfo="+domain;
|
||||
|
||||
$.post('/site/add', data, function(ret) {
|
||||
if(ret.status === false){
|
||||
layer.msg(ret.msg,{icon:ret.status?1:2})
|
||||
return;
|
||||
}
|
||||
|
||||
if (ret.siteStatus == true) {
|
||||
if (ret.status == true) {
|
||||
getWeb(1);
|
||||
layer.closeAll();
|
||||
layer.msg('成功创建站点',{icon:1})
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="main-content pb55">
|
||||
<div class="container-fluid">
|
||||
<div class="pos-box bgw mtb15">
|
||||
|
||||
Reference in New Issue
Block a user