diff --git a/src/nex.php b/src/nex.php index d848d99..a153feb 100644 --- a/src/nex.php +++ b/src/nex.php @@ -216,8 +216,11 @@ $server->start( // Try index file on enabled if (NEXT_FILE && file_exists($realpath . NEXT_FILE) && is_readable($realpath . NEXT_FILE)) { + // Update realpath returned on default file response + $realpath = $realpath . NEXT_FILE; + $response = file_get_contents( - $realpath . NEXT_FILE + $realpath ); }