See : http://wiki.codemongers.com/NginxXSendfile Just add a third option to use propritary Nginx X-Accel-Redirect Header You can map internal requested path like this : location /var/www/dokuwiki0/ { internal; alias /var/www/dokuwiki/dokuwiki0/; } Rq: in my case web server path is different from cgi script path.Maybe an option for striping base file path would be useful in this case.
It would give : location /data/ { internal; } (not tested) - pierre