PHP新手30天實戰金流
, Laravel6
終於可以連到在 GCE 上的專案了。不過,為什麼存取都轉向 api 了,路由都寫在 web.php 那耶QAQ
<?php
define('LARAVEL_START', microtime(true));
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
print_r($kernel);
print_r($request);
print_r($response);
印出來看 很複雜 好像沒有可以參考的資訊
加了 alias 沒有用...
Alias /api /home/mainuser/www/api/public
<directory home="" mainuser="" www="" api="" public="">[your config for this directory, e.g.:]
Require all granted
AllowOverride all</directory>
Not Found
The requested URL was not found on this server.
Apache/2.4.29 (Ubuntu) Server at 35.239.64.229 Port 80