Error 404 - Not Found

Asked

Viewed 631 times

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

  • Yes it is. @Miguel

  • Opps sorry, I didn’t read that part, distraction

  • Did you touch . htaccess? Run the app with php artisan serv? And if you go to http://nome_virtual_host/public/api, what gives?

  • 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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.