Below are two blocks in the /etc/nginx/sites-enabled/default one after the other as seen below :-
# First section
1. location / {
try_files $uri $uri/ /index.php?$query_string;
}
#Second location block -
2. location /pilot/(.*)/?$ {
#try_files $uri $uri/ /pilot?id=$1;
try_files $uri $uri/ /index.php?id=$1;
}
Even then when I hit http://localhost:8080/pilot/66 it just shows me the result as same as http://localhost:8080/pilot or http://localhost:8080/pilot/. It should have showed me result on for 66 (id=66) only. Thanks in advance!
已引用http://blog.martinfjordvald.com/2011/02/nginx-primer-2-from-apache-to-nginx/。来自https://www.nginx.com/resources/wiki/start/index.html