서버가 닫힌 경우 리다이렉트하도록
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>닫혀 있습니다.</title>
|
||||||
|
<script>
|
||||||
|
setTimeout(function(){
|
||||||
|
window.location = window.location+'/../';
|
||||||
|
}, 5000);
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
html, body{
|
||||||
|
background-color:black;
|
||||||
|
color:yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
서버가 닫혀있습니다.<br>
|
||||||
|
잠시 뒤에 입구로 이동합니다.
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,30 +1,39 @@
|
|||||||
<IfModule mod_headers.c>
|
<IfModule mod_headers.c>
|
||||||
Header set Cache-Control "max-age=60, must-revalidate"
|
Header set Cache-Control "max-age=60, must-revalidate"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
Deny from all
|
Deny from all
|
||||||
<?php if (isset($allow_ip) && $allow_ip != ''): ?>
|
<?php
|
||||||
SetEnvIf X-Forwarded-For ^<?=str_replace('.', '\\.', $allow_ip)?> env_allow_1
|
$targetPath = realpath(__DIR__.'/../../../403.html');
|
||||||
Allow from env=env_allow_1
|
$docRoot = realpath($_SERVER['DOCUMENT_ROOT']);
|
||||||
Allow from <?=$allow_ip?>
|
$targetPath = str_replace($docRoot, '', $targetPath);
|
||||||
<?php endif; ?>
|
$targetPath = str_replace('\\', '/', $targetPath);
|
||||||
|
?>
|
||||||
<Files j_autoreset.php>
|
ErrorDocument 403 <?=$targetPath?>
|
||||||
Allow from 127.0.0.1 ::1 localhost
|
|
||||||
</Files>
|
|
||||||
|
<?php if (isset($allow_ip) && $allow_ip != ''): ?>
|
||||||
<Files j_install.php>
|
SetEnvIf X-Forwarded-For ^<?=str_replace('.', '\\.', $allow_ip)?> env_allow_1
|
||||||
Allow from all
|
Allow from env=env_allow_1
|
||||||
</Files>
|
Allow from <?=$allow_ip?>
|
||||||
<Files install.php>
|
<?php endif; ?>
|
||||||
Allow from all
|
|
||||||
</Files>
|
<Files j_autoreset.php>
|
||||||
<Files j_server_basic_info.php>
|
Allow from 127.0.0.1 ::1 localhost
|
||||||
Allow from all
|
</Files>
|
||||||
</Files>
|
|
||||||
<Files ~ "\.(xml|css|jpe?g|png|gif|js|pdf)$">
|
<Files j_install.php>
|
||||||
Allow from all
|
Allow from all
|
||||||
</Files>
|
</Files>
|
||||||
<Files j_load_scenarios.php>
|
<Files install.php>
|
||||||
Allow from all
|
Allow from all
|
||||||
|
</Files>
|
||||||
|
<Files j_server_basic_info.php>
|
||||||
|
Allow from all
|
||||||
|
</Files>
|
||||||
|
<Files ~ "\.(xml|css|jpe?g|png|gif|js|pdf)$">
|
||||||
|
Allow from all
|
||||||
|
</Files>
|
||||||
|
<Files j_load_scenarios.php>
|
||||||
|
Allow from all
|
||||||
</Files>
|
</Files>
|
||||||
Reference in New Issue
Block a user