nginx sample moved to file git-svn-id: http://plugins.svn.wordpress.org/wp-ffpc/trunk@508073 b8457f37-d9ea-0310-8a92-e5e31aec5664
cadeyrn cadeyrn@b8457f37-d9ea-0310-8a92-e5e31aec5664
Tue, 21 Feb 2012 06:50:25 +0000
1 files changed,
15 insertions(+),
0 deletions(-)
jump to
A
nginx-sample.conf
@@ -0,0 +1,15 @@
+location / { + try_files $uri $uri/ @memcached; +} + +location @memcached { + default_type text/html; + + set $memcached_key DATAPREFIX$host$request_uri; + memcached_pass MEMCACHEDHOST:MEMCACHEDPORT; + error_page 404 = @rewrites; +} + +location @rewrites { + rewrite ^(.*)$ /index.php?q=$1 last; +}