search

Home  >  Q&A  >  body text

php - Laravel 5 newbie’s route pointing error

< /p>

< /p>

< br>If you fill in nothing, you can return to view('welcome')

The other two routes point to the root directory of the entire laravel file or the root of my nigix conf

< /p>

Windows environment, please crack

It is right to use php serve

< /p>

< /p>

You must use nginx domain name proxy

< /p>

Change root to public, the routing point is extremely slow, /public/foo directly returns foo
But /user keeps loading, there must be something wrong

伊谢尔伦伊谢尔伦2812 days ago434

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:06:39

    The reason for the huge slowness has been found.

    Change localhost to 127.0.0.1. I found that there is a big difference in the connection speed between the two in the Windows environment. Maybe my hosts have been corrupted

    The root of the nginx server must point to public
    The domain name of the proxy can be useful. There is no need to get localhost or 127.0.0.1 to write. There are still many differences between local and access domain name development
    The root of apache is the same

    reply
    0
  • Cancelreply