Tag: nginx

php-fpm can not use html as php

I have a site, which use nginx as web server and php-fpm as php interpreter. Most of the files use html extension name. My nginx conf file has following section. But, when I enter the url such as https://example.com/sample.html, whose content is php script. It did not work. The solution is to change the config

Change directives of Nginx

My new server uses Nginx as a web server. When I check the error log of it, I saw a lot of warnings. 2016/08/27 07:30:03 [warn] 11951#11951: *590544 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/3/28/0000008283 while reading upstream, client:, server: www.phpbbchinese.com, request: “GET /download/file.php?id=109 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “www.phpbbchinese.com” I did

HTTP/2 vs SPDY 3.1

I have a web site, which was powered by Nginx 1.7. The SPDY 3.1 was enabled. Later last week, I upgraded it to Nginx 1.9.7 mainline version. HTTP/2 already built with Nginx from version 1.9.5.¬† Why not enable HTTP/2? I just did a very rough test.   1. Pingdom testing tool SPDY 3.1: Performance Grade

Nginx Redirect HTTP to HTTPS and non-WWW to WWW

Here is my solution to do the redirection. Say, I have a web site. I host it with SSL. I want all these three type of host go to the same Unique Internet Address. From: http://example.com/ http://www.example.com/ https://example.com/ To: https://www.example.com/ There are some requirement: Nginx v1.8 SSL Certificate is issued for both  example.com and www.example.com