server { listen {{ env.APP_PORT }}; server_name localhost; root /var/www/limesurvey/{{ env.APP_NAME }}; index index.php; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php-fpm.sock; } }