Operating system: ubuntu13.10
Server: nginx 1.6
Configure nginx to access different directories according to different URL points
Use location/directory name { ... } to access different directories
But I want to build laravel4 framework, and I want to parse /coolwifi/test directly into /coolwifi/public/index.php/test, but an error will be reported:
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
But access through http://localhost/coolwifi/public/index.php/test is possible
what should I do?
The default configuration file is as follows:
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 36 37 38 39 40 41 42 43 44 |
|
黄舟2017-05-16 17:29:14
No matter how to set up a single server, the problem can be solved by setting up multiple servers, and configure multiple domain names in /etc/hosts of the local machine to point to the local, and use different domain names to distinguish different directories
巴扎黑2017-05-16 17:29:14
Have you ever used phalcon? I recently learned about phalcon, but according to your settings, all routes are redirected to index/index. Do you have a solution? Thank you