Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to locate cgi-bin folder for Nginx, which I installed on Mac OSX on my iMac. I am not sure where is it located? I saw another post but it was about the Lion Server. Can somebody tell me where is it on Mac OSX?

share|improve this question
Since CGI isn't supported on nginx - perhaps you just need to select one of these implementations? also watch for – bmike Jun 11 '12 at 19:02

Try finding it by typing this in the terminal:

 sudo find / -name cgi-bin | grep nginx
share|improve this answer
This was the reply I got with adding sudo in front of your command, find: /dev/fd/3: Not a directory find: /dev/fd/4: Not a directory, the reason I added sudo is because the output I got with your command, I have updated it above. – Sam007 Jun 11 '12 at 21:46
@Sam007 according to… it appears that those errors are normal. If you didn't see anything else besides them, there is no cgi-bin directory on the system with nginx in its path. You can try sudo find / -name cgi-bin to see if one exists anywhere. – Travis Pessetto Jun 11 '12 at 22:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.