remove if from code

tommygunner nginx-forum at
Wed Apr 26 17:09:14 UTC 2017

Thanks! I got it to work but had to put my fastcgi stuff inside.

location ~ \.php$ {
try_files $uri /index.php;

	# fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
	expires 	off;
	fastcgi_index  index.php;
       fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
	## Tweak fastcgi buffers, just in case.
	fastcgi_buffer_size 256k;
	fastcgi_buffers 256 4k;
	fastcgi_busy_buffers_size 256k;
	fastcgi_temp_file_write_size 256k;
    #fastcgi_connect_timeout 300;
	#fastcgi_send_timeout 300;
	#fastcgi_read_timeout 300;
    fastcgi_param HTTPS on;
    fastcgi_param   HTTP_SCHEME         https;
	include fastcgi_params;

Posted at Nginx Forum:,273865,273888#msg-273888

More information about the nginx mailing list