After installation, directly access http://localhost/Symfony/web/app_dev.... The welcome page will appear, but a prompt will pop up
An error occurred while loading the web debug toolbar (404: Not Found).Do you want to open the profiler?
But accessing http://localhost/Symfony/web/app_dev.... and http://localhost/Symfony/web/app_dev.... will return 404, please solve
symfony2
ringa_lee2017-05-16 16:47:20
The problem has been solved because nginx does not know the pathinfo mode by default. Just configure it.
给我你的怀抱2017-05-16 16:47:20
The answer may be incorrect, I'm very sorry, you need to verify it
Open Nginx configuration file nginx.conf
Add the following configuration to the server:
1 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
After modification, pathinfo can be recognized, but symfony still reports an error. Not solved yet.
怪我咯2017-05-16 16:47:20
Looks like it’s time to expand your skills~ Level 4 and 6 are guaranteed, hahaha
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|