Skip to content

Instantly share code, notes, and snippets.

@ayatmaulana
Created August 23, 2018 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayatmaulana/96f6be221ab46d604380ba57479b6ff5 to your computer and use it in GitHub Desktop.
Save ayatmaulana/96f6be221ab46d604380ba57479b6ff5 to your computer and use it in GitHub Desktop.
server {
listen 80 ;
root /var/www/pintu-dev/pintu-api/public;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name pintu-api.festiware.com;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment