Environment
Linux overlords 3.10.0-327.3.1.el7.x86_64 #1 SMP Wed Dec 9 14:09:15 UTC x86_64 x86_64 x86_64 gnu/linux
PHP 5.6.16 (CLI) (Built:dec 17 2015 10:06:34)
Nginx version:nginx/1.9.9
Problem description
In the process of learning Phalcon environment has been configured, pseudo-static is not a problem, but found that phalcon project projectName
can access the default control, such as the http://localhost/
creation of their own TestController.php
http://localhost/test
is not accessible;
Please play Phalcon's hero's advice
Solution Solutions
Using Nginx configuration rules $_SERVER['QUERY_STRING']
; At first, using $_SERVER['REQUEST_URI']
pseudo-static jumps does not pass
Reply content:
Environment
Linux overlords 3.10.0-327.3.1.el7.x86_64 #1 SMP Wed Dec 9 14:09:15 UTC x86_64 x86_64 x86_64 gnu/linux
PHP 5.6.16 (CLI) (Built:dec 17 2015 10:06:34)
Nginx version:nginx/1.9.9
Problem description
In the process of learning Phalcon environment has been configured, pseudo-static is not a problem, but found that phalcon project projectName
can access the default control, such as the http://localhost/
creation of their own TestController.php
http://localhost/test
is not accessible;
Please play Phalcon's hero's advice
Solution Solutions
Using Nginx configuration rules $_SERVER['QUERY_STRING']
; At first, using $_SERVER['REQUEST_URI']
pseudo-static jumps does not pass
The correct explanation is that the default adoption of the Phalcon QUERY_STRING
can be specified REQUEST_URI
in the routing configuration
It ' s supported:https://docs.phalconphp.com/en/latest/reference/routing.html#uri-sources