From 357305507c2ebb9ffa51c29662f749dc5f14aef1 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 14 Jun 2012 15:38:55 -0700 Subject: [PATCH] Fix nginx configuration guide Summary: We currently match "any PHP file path", which is wrong, since it will match things like `/diffusion/path/to/some/source/code.php`. Match only "index.php". Test Plan: This is the config secure.phabricator.com / local / etc run, we just had out of date documentation. Reviewers: Korvin, vrana, btrahan, jungejason Reviewed By: jungejason CC: aran Maniphest Tasks: T1323 Differential Revision: https://secure.phabricator.com/D2754 --- src/docs/configuration/configuration_guide.diviner | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/configuration/configuration_guide.diviner b/src/docs/configuration/configuration_guide.diviner index 4b562d449f..4529ce7346 100644 --- a/src/docs/configuration/configuration_guide.diviner +++ b/src/docs/configuration/configuration_guide.diviner @@ -145,7 +145,7 @@ For nginx, use a configuration like this: } } - location ~ \.php$ { + location /index.php { fastcgi_pass localhost:9000; fastcgi_index index.php;