I can see my website, but when I click on register I get the error URL not found on this server.
The mod_rewrite is running
$ sudo a2enmod rewrite
Module rewrite already enabled
I tried with php artisan serve and the website is perfectly working, so it would be a problem with apache, but I have 3 other local websites and also phpMyAdmin that work. I enabled all the websites in the same way, so I think that the configuration file for the virtual server is correct.
I can't guess what could be the problem.
I added 127.0.0.1 blog.test in /etc/hosts.
This is my /etc/apache2/sites-available/blog.test.conf file
<VirtualHost 127.0.0.1:80>
ServerName blog.test
#ServerAlias www.blog.test
ServerAdmin [email protected]
DocumentRoot /var/www/blog/public
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/blog.test.error.log
CustomLog ${APACHE_LOG_DIR}/blog.test.access.log combined
</VirtualHost>
and I enabled it
$ sudo a2ensite blog.test.conf
[sudo] password di marco:
Enabling site blog.test.
To activate the new configuration, you need to run:
systemctl reload apache2
$ sudo systemctl reload apache2
The problem is still there.
What can I do?