Skip to content

Instantly share code, notes, and snippets.

@muhfaris
Created February 24, 2017 09:45
Show Gist options
  • Save muhfaris/bd42ce0d584eadeed3f8a106b0ec1f2d to your computer and use it in GitHub Desktop.
Save muhfaris/bd42ce0d584eadeed3f8a106b0ec1f2d to your computer and use it in GitHub Desktop.
Konfigurasi Nginx nginx version: nginx/1.10.3 dan PHP 7.1.2
server {
....
....
location ~ .php$ {
root /usr/share/nginx/html;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment