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:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user