Sanguine thanks for the prompt reply.
I think I have enabled the rewrite module.
apachectl -M | sort
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:5
AH00112: Warning: DocumentRoot [/home/jonas/codes/lavarel/lavarel/public] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
core_module (static)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
http_module (static)
Loaded Modules:
log_config_module (static)
logio_module (static)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
so_module (static)
status_module (shared)
unixd_module (static)
version_module (static)
watchdog_module (static)
and I move all the file to the /var/www/html the root path of the site, but I still not the error 404, I cna't login now.
forum-1f2c3c53.js:596 POST http://localhost//login 404 (Not Found)
createXhr @ forum-1f2c3c53.js:596
ajax @ forum-1f2c3c53.js:598
m.request @ forum-1f2c3c53.js:625
request @ forum-1f2c3c53.js:2062
login @ forum-1f2c3c53.js:2292
onsubmit @ forum-1f2c3c53.js:2154
(anonymous) @ forum-1f2c3c53.js:310
forum-1f2c3c53.js:596 POST http://localhost//login 404 (Not Found)
createXhr @ forum-1f2c3c53.js:596
ajax @ forum-1f2c3c53.js:598
m.request @ forum-1f2c3c53.js:625
request @ forum-1f2c3c53.js:2062
login @ forum-1f2c3c53.js:2292
onsubmit @ forum-1f2c3c53.js:2154
(anonymous) @ forum-1f2c3c53.js:310
forum-1f2c3c53.js:596 POST http://localhost//login 404 (Not Found)
createXhr @ forum-1f2c3c53.js:596
ajax @ forum-1f2c3c53.js:598
m.request @ forum-1f2c3c53.js:625
request @ forum-1f2c3c53.js:2062
login @ forum-1f2c3c53.js:2292
onsubmit @ forum-1f2c3c53.js:2154
(anonymous) @ forum-1f2c3c53.js:310
forum-1f2c3c53.js:596 POST http://localhost//register 404 (Not Found)
createXhr @ forum-1f2c3c53.js:596
ajax @ forum-1f2c3c53.js:598
m.request @ forum-1f2c3c53.js:625
request @ forum-1f2c3c53.js:2062
onsubmit @ forum-1f2c3c53.js:2226
(anonymous) @ forum-1f2c3c53.js:310