mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
root file/dir
This commit is contained in:
@@ -417,8 +417,8 @@ bool ServerConfig::checkFileAndDir(location *loc)
|
||||
|
||||
if (!root.empty())
|
||||
{
|
||||
if (isDir(root) != 0)
|
||||
throw ConfigException("Directory " + root + " not found!");
|
||||
if (isDir(root) != 0 && isFile(root) != 0)
|
||||
throw ConfigException("File or directory " + root + " not found!");
|
||||
}
|
||||
if (!upload_dir.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user