server {
	listen 80;
	root   /var/www/html/;
	index index.php index.html index.htm;
	#charset koi8-r;
	access_log /var/log/nginx/;
	error_log   /var/log/nginx/   error;
	location / {
		try_files $uri $uri/ /index.php?$query_string;

	# pass the PHP scripts to FastCGI server listening on
	location ~ \.php$ {
		root    /var/www/html/;
		fastcgi_pass;	#set port for php-fpm to listen on
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
		include         fastcgi_params;
		include /etc/nginx/fastcgi_params;

Sliding Sidebar

About Me

About Me

Hello, my name is Dũng (Johnny). Welcome to my blog.

As I’m a developer, I write about topics related to the field of programming, mainly from a technical point of view. On this blog you’ll find posts which encourage discussion, information about development trends, case studies, reviews, tutorials, tips on how to improve your effectiveness, and anything else that might be fascinating to people from the IT industry.
I love PHP, NodeJS, Java,... and Fullstack.