# PHP-FPM FastCGI server
# network or unix domain socket configuration

upstream php {
	server unix:/run/php-fpm/www.sock ;
}

server {
	listen	 443;
 	root /home/ssl ;
	index index.php index.html index.htm;
 	server_name pricom.com.au ;

	ssl on ;
# ssl_certificate should be pointed to the file with combined certificates (file you created in step 2)
	ssl_certificate /etc/nginx/ssl/cert_chain.crt ;
# ssl_certificate_key should be pointed to the Private Key that has been generated with the CSR code that you have used for activation of the certificate.
	ssl_certificate_key /etc/nginx/ssl/www.pricom.com.au.key ;

	location / {
		try_files $uri $uri/ =404;
	}

	location ~ .php$ {
		fastcgi_index index.php;
		include fastcgi_params;
		fastcgi_pass php;
	}
}

# server {
# 	listen	443 ;
# 	root /home/ssl ;
# 	index index.php index.html index.htm;
# 	server_name pricom.com.au ;
# 
# 	ssl on ;
# # ssl_certificate should be pointed to the file with combined certificates (file you created in step 2)
# 	ssl_certificate /etc/nginx/ssl/cert_chain.crt ;
# # ssl_certificate_key should be pointed to the Private Key that has been generated with the CSR code that you have used for activation of the certificate.
# 	ssl_certificate_key /etc/nginx/ssl/www.pricom.com.au.key ;
# 
# 	location / {
# 		try_files $uri $uri/ @missing;
# 	}
# 
# 	location @missing {
# 		rewrite (.*) /index.php;
# 	}
# 
# 	location ~ .php$ {
# 		fastcgi_index index.php;
# 		include fastcgi_params;
# 		fastcgi_pass php;
# 	}
# }



