I used the same URL as you did but the webpage cannot be opened and the website cannot be accessed
<?php
namespace app\edu\controller;
class Test
{
public function demo1() {
return 123;
}
}
P粉3328801212022-04-19 18:06:50
The server needs to configure pseudo-static:
nginx: location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; }}