This commit is contained in:
Your Name
2026-09-03 08:38:17 +08:00
parent 6cd4f1b1db
commit 842990b0e7
1853 changed files with 278406 additions and 361 deletions
@@ -0,0 +1,8 @@
location ~ [^/]\.php(/|$)
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi-56.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
@@ -0,0 +1,91 @@
server
{
listen 80;
listen 443 ssl;
http2 on;
server_name m.bchongw.com;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/m.bchongw.com;
#CERT-APPLY-CHECK--START
# 用于SSL证书申请时的文件验证相关配置 -- 请勿删除
include /www/server/panel/vhost/nginx/well-known/m.bchongw.com.conf;
#CERT-APPLY-CHECK--END
include /www/server/panel/vhost/nginx/extension/m.bchongw.com/*.conf;
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
#HTTP_TO_HTTPS_START
set $isRedcert 1;
if ($server_port != 443) {
set $isRedcert 2;
}
if ( $uri ~ /\.well-known/ ) {
set $isRedcert 1;
}
if ($isRedcert != 1) {
rewrite ^(/.*)$ https://$host$1 permanent;
}
#HTTP_TO_HTTPS_END
ssl_certificate /www/server/panel/vhost/cert/m.bchongw.com/fullchain.pem;
ssl_certificate_key /www/server/panel/vhost/cert/m.bchongw.com/privkey.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_tickets on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497 https://$host$request_uri;
#SSL-END
#ERROR-PAGE-START 错误页配置,可以注释、删除或修改
error_page 404 /404.html;
#error_page 502 /502.html;
#ERROR-PAGE-END
#PHP-INFO-START PHP引用配置,可以注释或修改
include enable-php-56.conf;
#PHP-INFO-END
#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
include /www/server/panel/vhost/rewrite/m.bchongw.com.conf;
#REWRITE-END
# 禁止访问的敏感文件
location ~* (\.user.ini|\.htaccess|\.htpasswd|\.env.*|\.project|\.bashrc|\.bash_profile|\.bash_logout|\.DS_Store|\.gitignore|\.gitattributes|LICENSE|README\.md|CLAUDE\.md|CHANGELOG\.md|CHANGELOG|CONTRIBUTING\.md|TODO\.md|FAQ\.md|composer\.json|composer\.lock|package(-lock)?\.json|yarn\.lock|pnpm-lock\.yaml|\.\w+~|\.swp|\.swo|\.bak(up)?|\.old|\.tmp|\.temp|\.log|\.sql(\.gz)?|docker-compose\.yml|docker\.env|Dockerfile|\.csproj|\.sln|Cargo\.toml|Cargo\.lock|go\.mod|go\.sum|phpunit\.xml|phpunit\.xml|pom\.xml|build\.gradl|pyproject\.toml|requirements\.txt|application(-\w+)?\.(ya?ml|properties))$
{
return 404;
}
# 禁止访问的敏感目录
location ~* /(\.git|\.svn|\.bzr|\.vscode|\.claude|\.idea|\.ssh|\.github|\.npm|\.yarn|\.pnpm|\.cache|\.husky|\.turbo|\.next|\.nuxt|node_modules|runtime)/ {
return 404;
}
#一键申请SSL证书验证目录相关设置
location ~ \.well-known{
allow all;
}
#禁止在证书验证目录放入敏感文件
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
return 403;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
access_log /www/wwwlogs/m.bchongw.com.log;
error_log /www/wwwlogs/m.bchongw.com.error.log;
}
@@ -0,0 +1,79 @@
server
{
listen 80;
listen 443 ssl;
http2 on;
server_name www.bchongw.com;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/www.bchongw.com/;
#CERT-APPLY-CHECK--START
# 用于SSL证书申请时的文件验证相关配置 -- 请勿删除
include /www/server/panel/vhost/nginx/well-known/www.bchongw.com.conf;
#CERT-APPLY-CHECK--END
include /www/server/panel/vhost/nginx/extension/www.bchongw.com/*.conf;
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
ssl_certificate /www/server/panel/vhost/cert/www.bchongw.com/fullchain.pem;
ssl_certificate_key /www/server/panel/vhost/cert/www.bchongw.com/privkey.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_tickets on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497 https://$host$request_uri;
#SSL-END
#ERROR-PAGE-START 错误页配置,可以注释、删除或修改
error_page 404 /404.html;
#error_page 502 /502.html;
#ERROR-PAGE-END
#PHP-INFO-START PHP引用配置,可以注释或修改
include enable-php-56.conf;
#PHP-INFO-END
#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
include /www/server/panel/vhost/rewrite/www.bchongw.com.conf;
#REWRITE-END
# 禁止访问的敏感文件
location ~* (\.user.ini|\.htaccess|\.htpasswd|\.env.*|\.project|\.bashrc|\.bash_profile|\.bash_logout|\.DS_Store|\.gitignore|\.gitattributes|LICENSE|README\.md|CLAUDE\.md|CHANGELOG\.md|CHANGELOG|CONTRIBUTING\.md|TODO\.md|FAQ\.md|composer\.json|composer\.lock|package(-lock)?\.json|yarn\.lock|pnpm-lock\.yaml|\.\w+~|\.swp|\.swo|\.bak(up)?|\.old|\.tmp|\.temp|\.log|\.sql(\.gz)?|docker-compose\.yml|docker\.env|Dockerfile|\.csproj|\.sln|Cargo\.toml|Cargo\.lock|go\.mod|go\.sum|phpunit\.xml|phpunit\.xml|pom\.xml|build\.gradl|pyproject\.toml|requirements\.txt|application(-\w+)?\.(ya?ml|properties))$
{
return 404;
}
# 禁止访问的敏感目录
location ~* /(\.git|\.svn|\.bzr|\.vscode|\.claude|\.idea|\.ssh|\.github|\.npm|\.yarn|\.pnpm|\.cache|\.husky|\.turbo|\.next|\.nuxt|node_modules|runtime)/ {
return 404;
}
#一键申请SSL证书验证目录相关设置
location ~ \.well-known{
allow all;
}
#禁止在证书验证目录放入敏感文件
if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {
return 403;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
access_log /dev/null;
error_log /www/wwwlogs/www.bchongw.com.error.log;
}
@@ -0,0 +1,106 @@
rewrite ^/down/soft_(.*)/type/(.*).html$ /down/index.php?s=down-down-id-$1-type-$2 last;
rewrite ^/down/(.*)/index([0-9]+).html$ /down/index.php?s=Home-news-show-dir-$1-p-$2 last;
rewrite ^/mas/b1.xml$ /down/index.php?s=/map-show-type-down-id-baidu-limit-10000-p-1-order-desc;
rewrite ^/down/games_([0-9]+).html$ /down/index.php?s=/news-read-id-$1 last;
rewrite ^/down/map-show-type-(.*)-id-baidu-limit-(.*)-p-(.*).xml$ /down/index.php?s=/map-show-type-$1-id-baidu-limit-$2-p-$3;
rewrite ^/down/(.*)/$ /down/index.php?s=Home-news-show-dir-$1 last;
rewrite ^/down/soft_(.*).html$ /down/index.php?s=/down-read-id-$1 last;
rewrite ^/tag-(.*)-name-(.*).html$ /down/index.php?s=/home-tag-show-type-$1-name-$2-p-$3 last;
rewrite ^/down/user-center-(.*)$ /down/index.php?s=/User-center-$1 last;
rewrite ^/down/user-(.*)-(.*)$ /down/index.php?s=/User-$1-$2 last;
rewrite ^/down/pay-pay-(.*)$ /down/index.php?s=/pay-pay-$1 last;
rewrite ^/down/gb-p-(.*).html$ /down/index.php?s=/Home-gb-show-p-$1 last;
rewrite ^/jb/(.*)/$ /index.php?s=/Home-jb-show-id-$1 last;
rewrite ^/jb/(.*)/index.html$ /index.php?s=/Home-jb-show-id-$1 last;
rewrite ^/jb/(.*)/index(.*).html$ /index.php?s=/Home-jb-show-id-$1-p-$2 last;
rewrite ^/faq/(.*)$ faq/$1 last;
rewrite ^/my_(.*).html$ /index.php?s=/Home-My-show-$1 last;
rewrite ^/up/(.*)-up(.*).html$ /index.php?s=/Home-up-show-dir-$1-s-up-data-$2 last;
rewrite ^/up/(.*)-(.*).html$ /index.php?s=/Home-up-show-dir-$1-data-$2 last;
rewrite ^/special/$ /index.php?s=/special-show last;
rewrite ^/special/index(.*)$ /index.php?s=/special-show-p-$1 last;
rewrite ^/special/(.*)/$ /index.php?s=/special-read-name-$1 last;
rewrite ^/user-id-([0-9]+).html$ /index.php?s=/User-home-index-id-$1 last;
rewrite ^/user/id-(.*)$ /index.php?s=/User-home-index-id-$1 last;
rewrite ^/star/(.*)news/$ /index.php?s=/Home-star-news-name-$1 last;
rewrite ^/star/(.*)news/index.html$ /index.php?s=/Home-star-news-name-$1 last;
rewrite ^/star/(.*)news/index(.*).html$ /index.php?s=/Home-star-news-name-$1-p-$2 last;
rewrite ^/star/(.*)role/$ /index.php?s=/Home-star-role-name-$1 last;
rewrite ^/star/(.*)role/index.html$ /index.php?s=/Home-star-role-name-$1 last;
rewrite ^/star/(.*)role/index(.*).html$ /index.php?s=/Home-star-role-name-$1-p-$2 last;
rewrite ^/zhibo/(.*)$ zhibo/$1 last;
rewrite ^/star/(.*)/$ /index.php?s=/Home-star-read-name-$1 last;
rewrite ^/star/(.*)/index.html$ /index.php?s=/Home-star-read-name-$1 last;
rewrite ^/star/index_(.*)_(.*)_(.*)_(.*)_(.*)_(.*)$ /index.php?s=/Home-star-show-letter-$1-area-$2-xb-$3-zy-$4-order-$5-p-$6 last;
rewrite ^/star/$ /index.php?s=/Home-star-show last;
rewrite ^/coauthor/(.*)/$ /index.php?s=/Home-star-hz-name-$1 last;
rewrite ^/coauthor/(.*)/index(.*).html$ /index.php?s=/Home-star-hz-name-$1-p-$2 last;
rewrite ^/work/(.*)/$ /index.php?s=/Home-star-work-name-$1 last;
rewrite ^/work/(.*)/index(.*).html$ /index.php?s=/Home-star-work-name-$1-p-$2 last;
rewrite ^/story/(.*)/index-(.*).html$ /index.php?s=/Home-story-show-dir-$1-p-$2 last;
rewrite ^/story/(.*)/$ /index.php?s=/Home-story-show-dir-$1 last;
rewrite ^/juqing/(.*)/index(.*).html$ /index.php?s=/Home-story-read-name-$1-p-$2 last;
rewrite ^/juqing/(.*)/$ /index.php?s=/Home-story-read-name-$1 last;
rewrite ^/actor/$ /index.php?s=/Home-actor-show-p-1 last;
rewrite ^/actor/index.html$ /index.php?s=/Home-actor-show-p-1 last;
rewrite ^/actor/index-(.*).html$ /index.php?s=/Home-actor-show-p-$1 last;
rewrite ^/actor/(.*)/$ /index.php?s=/Home-actor-read-name-$1 last;
rewrite ^/actor/(.*)/index.html$ /index.php?s=/Home-actor-read-name-$1 last;
rewrite ^/role/$ /index.php?s=/Home-role-show-p-1 last;
rewrite ^/role/index.html$ /index.php?s=/Home-role-show-p-1 last;
rewrite ^/role/index-(.*).html$ /index.php?s=/Home-role-show-p-$1 last;
rewrite ^/role/(.*)/(.*)$ /index.php?s=/Home-actor-role-name-$1-id-$2 last;
rewrite ^/newslist/(.*)/$ /index.php?s=/Home-news-show-id-$1 last;
rewrite ^/newslist/(.*)/index.html$ /index.php?s=/Home-news-show-id-$1 last;
rewrite ^/newslist/(.*)/index(.*).html$ /index.php?s=/Home-news-show-id-$1-p-$2 last;
rewrite ^/news/(.*).html$ /index.php?s=/Home-news-read-id-$1 last;
rewrite ^/jibing/(.*)/quanbu/$ /index.php?s=/Home-jb-quanbu-id-$1 last;
rewrite ^/jibing/(.*)/yuhou/$ /index.php?s=/Home-jb-yuhou-id-$1 last;
rewrite ^/jibing/(.*)/zhenduan/$ /index.php?s=/Home-jb-zhenduan-id-$1 last;
rewrite ^/jibing/(.*)/zhiliao/$ /index.php?s=/Home-jb-zhiliao-id-$1 last;
rewrite ^/jibing/(.*)/fuzhuzhiliao/$ /index.php?s=/Home-jb-fuzhuzhiliao-id-$1 last;
rewrite ^/bianchong/(.*)/qugan/$ /index.php?s=/Home-bianchong-qugan-id-$1 last;
rewrite ^/jibing/(.*)/bingyin/$ /index.php?s=/Home-jb-bingyin-id-$1 last;
rewrite ^/jibing/(.*)/cankao/$ /index.php?s=/Home-jb-cankao-id-$1 last;
rewrite ^/jibing/(.*)/quanbu/$ /index.php?s=/Home-jb-quanbu-id-$1 last;
rewrite ^/jibing/(.*).html$ /index.php?s=/Home-jb-read-id-$1 last;
rewrite ^/jibing/(.*)/(.*).html$ /index.php?s=/Home-jb-zhenduan-id-$1 last;
rewrite ^/bch/(.*)/$ /index.php?s=/Home-bianchong-show-id-$1 last;
rewrite ^/bch/(.*)/index.html$ /index.php?s=/Home-bianchong-show-id-$1 last;
rewrite ^/bch/(.*)/index(.*).html$ /index.php?s=/Home-bianchong-show-id-$1-p-$2 last;
rewrite ^/bianchong/(.*).html$ /index.php?s=/Home-bianchong-read-id-$1 last;
rewrite ^/tulist/(.*)/$ /index.php?s=/Home-tuku-show-id-$1 last;
rewrite ^/tulist/(.*)/index.html$ /index.php?s=/Home-tuku-show-id-$1 last;
rewrite ^/tulist/(.*)/index(.*).html$ /index.php?s=/Home-tuku-show-id-$1-p-$2 last;
rewrite ^/tuku/(.*).html$ /index.php?s=/Home-tuku-read-id-$1 last;
rewrite ^/list/(.*)/(.*)/(.*)-(.*).html$ /index.php?s=/vod-play-name-$2-sid-$3-pid-$4-listname-$1 last;
rewrite ^/list/(.*)/(.*)/([a-z]+).html$ /index.php?s=/Home-tv-read-name-$2-wpy-$3-listname-$1 last;
rewrite ^/list/(.*)/index_(.*)_(.*)_(.*)_(.*)_(.*)_(.*)_(.*)_(.*).html /index.php?s=/Home-vod-type-dir-$1-p-$2-mcid-$3-lz-$4-year-$5-letter-$6-order-$7-area-$8-picm-$9 last;
rewrite ^/list/(.*)/index.html$ /index.php?s=/Home-vod-show-dir-$1 last;
rewrite ^/list/(.*)/index([0-9]+).html$ /index.php?s=/Home-vod-show-dir-$1-p-$2 last;
rewrite ^/list/(.*)/$ /index.php?s=/Home-vod-show-dir-$1 last;
rewrite ^/top(.*).html$ last;
rewrite ^/new(.*).html$ last;
rewrite ^/sitemap.html$ last;
rewrite ^/map/(rss|google|baidu|sitemap).html$ /index.php?s=/map-show-id-$1-limit-500.html last;
rewrite ^/map/(rss|google|baidu|tuisong|sitemap).xml$ /index.php?s=/map-show-id-$1-limit-500.html last;
rewrite ^/map-(.*)$ /index.php?s=/Home-map-$1 last;
rewrite ^/tag-(.*)$ /index.php?s=/Home-tag-$1 last;
rewrite ^/gb-(.*)$ /index.php?s=/User-gb-$1 last;
rewrite ^/cm-(.*)$ /index.php?s=/Home-cm-$1 last;
rewrite ^/Tpl/(.*)/Home/(.*).html$ 404.htm last;
rewrite ^/vod-(.*)$ /index.php?s=/Home-vod-$1 last;
rewrite ^/vod-search-(.*)$ /index.php?s=/Home-vod-search-$1 last;
rewrite ^/Public/setup/play.php(.*)$ last;
rewrite ^/Public/setup/ff.php(.*)$ last;
rewrite ^/jibing/(.*)/quanbu$ /index.php?s=/Home-jb-quanbu-id-$1 last;
rewrite ^/jibing/(.*)/yuhou$ /index.php?s=/Home-jb-yuhou-id-$1 last;
rewrite ^/jibing/(.*)/zhenduan$ /index.php?s=/Home-jb-zhenduan-id-$1 last;
rewrite ^/jibing/(.*)/zhiliao$ /index.php?s=/Home-jb-zhiliao-id-$1 last;
rewrite ^/jibing/(.*)/fuzhuzhiliao$ /index.php?s=/Home-jb-fuzhuzhiliao-id-$1 last;
rewrite ^/bianchong/(.*)/qugan$ /index.php?s=/Home-bianchong-qugan-id-$1 last;
rewrite ^/jibing/(.*)/bingyin$ /index.php?s=/Home-jb-bingyin-id-$1 last;
rewrite ^/jibing/(.*)/cankao$ /index.php?s=/Home-jb-cankao-id-$1 last;
rewrite ^/jibing/(.*)/quanbu$ /index.php?s=/Home-jb-quanbu-id-$1 last;
rewrite ^/jibing/(.*).html$ /index.php?s=/Home-jb-read-id-$1 last;
rewrite ^/jibing/(.*)/(.*).html$ /index.php?s=/Home-jb-zhenduan-id-$1 last;
@@ -0,0 +1,2 @@
session.save_path=/www/php_session/m.bchongw.com/
session.save_handler = files
@@ -0,0 +1,26 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>404</title>
<style>
body{
background-color:#444;
font-size:14px;
}
h3{
font-size:60px;
color:#eee;
text-align:center;
padding-top:30px;
font-weight:normal;
}
</style>
</head>
<body>
<h3>404,您请求的文件不存在!</h3>
</body>
</html>
@@ -0,0 +1,28 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//session_start();
// 应用入口文件
error_reporting(E_ALL & ~E_NOTICE);
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.4.0','<')) die('require PHP > 5.4.0 !');
//超时时间
@set_time_limit(300);
//内存限制 取消内存限制
@ini_set("memory_limit",'-1');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);
// 定义应用目录
define('APP_PATH','./Lib/');
//define('APP_DEBUG',True);
// 引入ThinkPHP入口文件
require './Lib/ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单
@@ -0,0 +1,28 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//session_start();
// 应用入口文件
error_reporting(E_ALL & ~E_NOTICE);
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.4.0','<')) die('require PHP > 5.4.0 !');
//超时时间
@set_time_limit(300);
//内存限制 取消内存限制
@ini_set("memory_limit",'-1');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
//define('APP_DEBUG',true);
// 定义应用目录
define('APP_PATH','./Lib/');
// 引入ThinkPHP入口文件
require './Lib/ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单