A correct but compact set of instructions for fastcgi on nginx
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 3 Nov 2011 15:59:47 +0000 (10:59 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 3 Nov 2011 15:59:47 +0000 (10:59 -0500)
docs/source/deploying.rst

index cbdf9a4ccc2633d648f15dea6f3b13b4d364efac..fbe829afd79d59860ab0c3eb7f52b1c0b7599d14 100644 (file)
@@ -213,8 +213,12 @@ this ``nginx.conf`` file should be modeled on the following: ::
       # Mounting MediaGoblin itself via fastcgi.
       location / {
          fastcgi_pass 127.0.0.1:26543;
-         fastcgi_param PATH_INFO $fastcgi_script_name;
          include /etc/nginx/fastcgi_params;
+
+         # our understanding vs nginx's handling of script_name vs
+         # path_info don't match :)
+         fastcgi_param PATH_INFO $fastcgi_script_name;
+         fastcgi_param SCRIPT_NAME "";
       }
      }