Fastcgi is required to execute php scripts
[code language=”bash”]
server {
listen 80;
root /home/ubuntu/android_team/paytm;
index index.php index.html index.htm;
server_name yoursite.com;
location / {
try_files $uri $uri/ =404 index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;
}
}
[/code]