mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 08:07:17 +08:00
feat: website controller
This commit is contained in:
@@ -169,9 +169,9 @@ rm -rf src
|
||||
mkdir -p /www/wwwroot/default
|
||||
mkdir -p /www/wwwlogs
|
||||
mkdir -p /www/server/vhost
|
||||
mkdir -p /www/server/vhost/openresty
|
||||
mkdir -p /www/server/vhost/openresty/rewrite
|
||||
mkdir -p /www/server/vhost/openresty/ssl
|
||||
mkdir -p /www/server/vhost
|
||||
mkdir -p /www/server/vhost/rewrite
|
||||
mkdir -p /www/server/vhost/ssl
|
||||
|
||||
# 写入主配置文件
|
||||
cat >${openrestyPath}/conf/nginx.conf <<EOF
|
||||
@@ -264,7 +264,7 @@ http {
|
||||
fastcgi_param SCRIPT_FILENAME \$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
include /www/server/vhost/openresty/*.conf;
|
||||
include /www/server/vhost/*.conf;
|
||||
}
|
||||
EOF
|
||||
# 写入pathinfo配置文件
|
||||
@@ -318,7 +318,7 @@ chown -R www:www /www/wwwroot
|
||||
chmod -R 644 /www/server/vhost
|
||||
|
||||
# 写入无php配置文件
|
||||
echo "" >${openrestyPath}/conf/enable-php-00.conf
|
||||
echo "" >${openrestyPath}/conf/enable-php-0.conf
|
||||
# 写入代理默认配置文件
|
||||
cat >${openrestyPath}/conf/proxy.conf <<EOF
|
||||
proxy_temp_path ${openrestyPath}/proxy_temp_dir;
|
||||
|
||||
@@ -57,7 +57,7 @@ if [ -d "/www/server/php/82" ]; then
|
||||
fi
|
||||
|
||||
# 写入 phpMyAdmin 配置文件
|
||||
cat >/www/server/vhost/openresty/phpmyadmin.conf <<EOF
|
||||
cat >/www/server/vhost/phpmyadmin.conf <<EOF
|
||||
# 配置文件中的标记位请勿随意修改,改错将导致面板无法识别!
|
||||
# 有自定义配置需求的,请将自定义的配置写在各标记位下方。
|
||||
server
|
||||
@@ -100,8 +100,8 @@ server
|
||||
}
|
||||
EOF
|
||||
# 设置文件权限
|
||||
chown -R root:root /www/server/vhost/openresty/phpmyadmin.conf
|
||||
chmod -R 644 /www/server/vhost/openresty/phpmyadmin.conf
|
||||
chown -R root:root /www/server/vhost/phpmyadmin.conf
|
||||
chmod -R 644 /www/server/vhost/phpmyadmin.conf
|
||||
|
||||
# 放行端口
|
||||
firewall-cmd --permanent --zone=public --add-port=888/tcp >/dev/null 2>&1
|
||||
|
||||
@@ -22,7 +22,7 @@ setupPath="/www"
|
||||
phpmyadminPath="${setupPath}/wwwroot/phpmyadmin"
|
||||
|
||||
|
||||
rm -rf /www/server/vhost/openresty/phpmyadmin.conf
|
||||
rm -rf /www/server/vhost/phpmyadmin.conf
|
||||
rm -rf ${phpmyadminPath}
|
||||
panel deletePlugin phpmyadmin
|
||||
systemctl reload openresty
|
||||
|
||||
Reference in New Issue
Block a user