I set up osTicket on a FreeBSD server and wanted to have it served by nginx and FastCGI. I ran into some problems with the approaches other people described and even with the recipe found on the nginx website. These problems resulted in errors logged as FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream when I tried to upload an attachment to a ticket that I created on the client's side (not on the agent's side, i.e. /scp). The client/reporter received something like File Upload error <filename-here> undefined400 in an alert box. Additionally the WYSIWYG icons in the issue description area were missing.