i do some thing to trun on rewrite mod like:
$ sudo a2enmod rewrite
and
make .htaccess:
<Directory /var/www/html>
RewriteEngine on
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Debug mode show:
POST http://localhost/flarum/public/api/users/1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.41 (Ubuntu) Server at localhost Port 80</address>
</body></html>