0
Good afternoon,
I am doing a project where I have installed php7, mysql, apache2 in a virtualbox with ubuntu16.04.
I’m working locally and I’ve installed the 5.3 Laravel.
I have an api already made that was working but I made a Virtual host, in which I created a new virtual Host and put the DocumentRoot minha_pasta
and the ServerName nome_virtual_host
. Then I went to the hosts file and put a new line with 127.0.0.1 hostname.
When in the browser I put http://nome_virtual_host
, I see the Laravel page as I was supposed to but when I do http://nome_virtual_host/api
, used to give me Json code as I was supposed to and now it appears to me:
Not Found
The requested URL /api was not found on this server.
Apache/2.4.18 (Ubuntu) Server at nome_virtual_host Port 80
How can I solve the problem?
Is it Laravel 5.3? Catherine
– Miguel
Yes it is. @Miguel
– Catarina
Opps sorry, I didn’t read that part, distraction
– Miguel
Did you touch . htaccess? Run the app with
php artisan serv
? And if you go tohttp://nome_virtual_host/public/api
, what gives?– Miguel
I didn’t touch . htaccess, what do I have to do in that file? and if you put php Artisan to run with: (http://name_virtual_host:8000/api), when I changed the virtual host in Documentroot I already put the public folder as well. Only what I have to put is the door 8000@Miguel
– Catarina