Closed sotavant closed 8 years ago
Have you tried to set serverName "localhost:3030"?
Yes, the property Yii::$app->getModule('core')->serverName is equal "localhost:3030", because i'm set this value in config files: grep -R 'serverName' ./config ./config/common-local.php: 'serverName' => 'localhost:3030' if, this value "localhost", assets can't load
for testing i'm write this string: $serverName = "localhost:3030"; //if ($request->serverName == Yii::$app->getModule('core')->serverName) { if ($serverName == Yii::$app->getModule('core')->serverName) { $_path = $request->getPathInfo(); } else { $_path = $request->absoluteUrl; }
this solution fix the problem with 404 response
@HannibalLecktor could you test this branch with yours setup please?
yes, i can
A new installation from branch feature/response-port is success) static pages and assets load correct
if site work on some port. Example http://localhost:3030 Static pages(route /page/page/show) gives response 404. Problem in method app\modules\page\components\PageRule::parseRequest (line 43). $request->serverName is equal localhost, but Yii::$app->getModule('core')->serverName is equal localhost:3030. If in config set serverName with value 'localhost', assets don't can load