I have almost-successfully configured a virtualhost using Apache to work with Laravel 5.4 (initially I was working with Homestead but "x" reasons I am now working locally).
The problem is that even if you manage to load the initial page, I can not access to consult Laravel's "api" routes, so, if I have the route:
and I want to get the results of the following route:
It does not work. Rather I get the error 404. I do not know if I should do more configurations, but this is what I have in the configuration of my virtualhost:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName ventas.dev
ServerAlias www.ventas.dev
DocumentRoot /var/www/html/Ventas/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/Ventas/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Any ideas of what I might be doing wrong?