1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

tweak statamic sharing

This commit is contained in:
Taylor Otwell
2016-05-05 14:54:07 -05:00
parent e0da86d2eb
commit a7816754e9

View File

@@ -48,6 +48,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'];
}
$_SERVER['SCRIPT_NAME'] = '/index.php';
if (file_exists($indexPath = $sitePath.'/index.php')) {