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

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		root    /var/www/html/example1.com/;
		fastcgi_pass   127.0.0.1:9000;	#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;
	}
}

Site Footer

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.

  • http://lcdung.top/about/
  • Mail: ledung@8bitbase.com

Time line