1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Fix subdomains

This commit is contained in:
Lukas Heller
2021-02-23 13:58:24 +01:00
committed by GitHub
parent f46a25fe04
commit c2f21a421e

View File

@@ -135,15 +135,15 @@ function valet_default_site_path($config)
if (in_array($file, ['.', '..', '.DS_Store'])) continue;
// match dir for lowercase, because Nginx only tells us lowercase names
if (strtolower($file) === $siteName) {
$valetSitePath = $path.'/'.$file;
break;
}
if (strtolower($file) === $domain) {
if (strtolower($file) === $siteName || strtolower($file) === $domain) {
$valetSitePath = $path.'/'.$file;
}
}
closedir($handle);
if ($valetSitePath) {
break;
}
}
}