XF 2.0 Friendly Nginx Rewrites

I'm trying to get friendly URLs going for Nginx. The forums are in /community location. When I insert the commented out lines below, PHP files aren't being executed (they're downloaded instead). Any idea what I'm doing wrong here?

Based on the reference in the manual, it looks like the only difference here is use of sockets. Any idea what I'm doing wrong here?

NGINX:
#       location ~ ^/community/ {
#            try_files $uri $uri/ ^/community/index.php?$uri&$args;
#            index index.php index.html;
#       }

       location ~ \.php$ {
             try_files $uri =404;
             include /etc/nginx/fastcgi_params;
             fastcgi_pass unix:/run/php/php7.0-fpm-1.sock;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
 
Here's what I ended up with:

NGINX:
       location ~ \.php$ {
             try_files $uri =404;
             include /etc/nginx/fastcgi_params;
             fastcgi_pass unix:/run/php/php7.0-fpm.sock;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }

       location /community/ {
              try_files $uri $uri/ /community/index.php?$uri&$args;
       }
 
Top Bottom