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

Set SERVER_NAME variable for WordPress driver

Closes #138
This commit is contained in:
Adam Wathan
2016-09-24 15:39:25 -04:00
parent a35c259200
commit 353f24cea8

View File

@@ -27,6 +27,7 @@ public function frontControllerPath($sitePath, $siteName, $uri)
{
$_SERVER['PHP_SELF'] = $uri;
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
return parent::frontControllerPath(
$sitePath, $siteName, $this->forceTrailingSlash($uri)