mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Fix subdomains
This commit is contained in:
10
server.php
10
server.php
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user