From 771aeaacb64fd22ab53153c7b3469acd38773945 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Tue, 30 Jun 2015 15:19:05 -0400 Subject: [PATCH] Don't show status pages on Airtime Pro --- airtime_mvc/public/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/airtime_mvc/public/index.php b/airtime_mvc/public/index.php index 81a3b1339..d749755b6 100644 --- a/airtime_mvc/public/index.php +++ b/airtime_mvc/public/index.php @@ -63,6 +63,11 @@ if (file_exists($filename)) { } // Otherwise, we'll need to run our configuration setup else { + // Sometimes we can get into a weird NFS state where a station's airtime.conf has + // been neg-cached - redirect to a 404 instead until the NFS cache is updated + if (strpos($_SERVER['SERVER_NAME'], "airtime.pro") !== false) { + header($_SERVER['SERVER_PROTOCOL'] . ' 404 Page Not Found', true, 404); + } $airtimeSetup = true; require_once(SETUP_PATH . 'setup-config.php'); }