Can't take credit for this - my extraordinary colleague did the work. Here's his solution.
osTicket was developed using
Apache. There were Apache rewrite rules that needed to be converted for
nginx.
These are the rules in place
that make the client and staff sides work.
#
# Start Mods needed for OS Ticket.
#
if ($request_uri ~ "^/api(+)") {
set $path_info $1;
}
location ~ ^/api/(?|tasks).*$ {
try_files $uri $uri/ /api/http.php?$query_string;
}
if ($request_uri ~ "^/scp/.*\.php(+)") {
set $path_info $1;
}
location ~ ^/scp/ajax.php/.*$ {
try_files $uri $uri/ /scp/ajax.php?$query_string;
}
location ~ ^/ajax.php/.*$ {
try_files $uri $uri/ /ajax.php?$query_string;
}