mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 09:10:03 +01:00
rewrite host on the fly for ngrok
This commit is contained in:
@@ -46,6 +46,10 @@ public function isStaticFile($sitePath, $siteName, $uri)
|
||||
*/
|
||||
public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
{
|
||||
if (isset($_SERVER['HTTP_X_ORIGINAL_HOST'])) {
|
||||
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_ORIGINAL_HOST'];
|
||||
}
|
||||
|
||||
return $sitePath.'/public/index.php';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user