镜像自地址
https://github.com/JGZYES/ParlzPackageManger.git
已同步 2026-09-11 08:52:45 +08:00
mirror: treat /index.php as homepage (fix 404 when opened directly)
这个提交包含在:
+3
-1
@@ -121,7 +121,9 @@ if (preg_match('#^/upload$#', $uri)) {
|
||||
else { http_response_code(405); echo 'method not allowed'; exit; }
|
||||
}
|
||||
|
||||
if ($uri === '/' || $uri === '/index.html') send_file($ROOT . '/index.html', 'text/html; charset=utf-8');
|
||||
if ($uri === '/' || $uri === '/index.html' || $uri === '/index.php') {
|
||||
send_file($ROOT . '/index.html', 'text/html; charset=utf-8');
|
||||
}
|
||||
if ($uri === '/packages.json' || $uri === '/api/packages.json') send_index();
|
||||
if ($uri === '/mirror.ini' || $uri === '/mirror.conf') { header('Content-Type: text/plain'); echo mirror_ini(); exit; }
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户