- location ~ /ikiwiki.cgi {
- fastcgi_pass unix:/var/run/fcgiwrap.socket;
- include fastcgi_params;
- fastcgi_index ikiwiki.cgi;
- fastcgi_param SCRIPT_FILENAME /home/USER/public_html/wiki/ikiwiki.cgi;
- }
+ location / {
+ try_files $uri $uri/ =404;
+ }
+
+ # Max size of file upload
+ client_max_body_size 10m;
+
+ location ~ .cgi {
+ #gzip off is recommended in /usr/share/doc/fcgiwrap/README.Debian
+ gzip off;
+ fastcgi_pass unix:/var/run/fcgiwrap.socket;
+ include /etc/nginx/fastcgi_params;
+ }
+
+Here's a [[complete site.conf|tips/nginx]] for nginx if that helps.