server { listen 80 default_server; root /var/www/html; index index.php index.html; include /etc/nginx/snippets/security.conf; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include /etc/nginx/snippets/fastcgi-php.conf; fastcgi_pass fpm:9000; } }