You sir, are brilliant. I've done this before, and completely, completely forgot about it. However, perhaps this "bug" should be fixed eventually ;)by sonicsnes - Nginx Mailing List - English
Using aliases with fast cgi results in... strange results. With this config: location /cgi-bin/ { alias /home/nagios/nagios/sbin; include /etc/nginx/fastcgi.conf; fastcgi_pass unix:/var/run/fcgiwrap.socket; } , if you request /cgi-bin/test.cgi, $document_root is changed to /home/nagios/nagios/sbin, as you would expect. Hby sonicsnes - Nginx Mailing List - English