If you installed chive in the "chive" subdirectory, follow these steps:
location /chive/ {
try_files $uri chive/$uri/ /chive/index.php?q=$uri&$args;
}
without subdir:
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
you can use $ query_string instead of $ args, according to http://wiki.nginx.org/HttpCoreModule (It reads: "Same as $ args, except that this variable is read only.")
source
share