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
The problem has been solved because nginx does not know the pathinfo mode by default. Just configure it.
The answer may be incorrect, I'm very sorry, you need to verify it
nginx does not configure pathinfo, it will be fine after configuring it
Open Nginx configuration file nginx.conf
Add the following configuration to the server:
Modify location ~ .php# to: ^/(app|app_dev|config).php(/|$)
Add pathinfo parsing code, which is actually regular matching, and then add the following code
Configuration is completed as follows
After modification, pathinfo can be recognized, but symfony still reports an error. Not solved yet.
Looks like it’s time to expand your skills~ Level 4 and 6 are guaranteed, hahaha