Tag: directives

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: 107.174.247.88, 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

How to enable GBK encoding

The situation is WebPage was made by GBK encoding. GBK is one of the Chinese Encoding. When the browser loading the page, it always return UTF-8. It should be GBK. I checked the head of the webpage. content=”text/html; charset=gb2312″ Different browsers tested. All failed. How to fix this problem and let the server feedback the

Upload file with socket enabled

I have a website, which allow user to upload large file. Such as 200MB flv file through WEB interface. This kind of upload is not use FTP, not the regular php upload function, or get, post form function. The large file has to use socket to upload. It need socket enabled on PHP. I do

Why .htaccess does not work

Last Friday, I put an .htaccess file into one folder of my site. The function of this htaccess is to make it auto redirect to other path. The problem is it is not working. I do have use this kind of code many times. Why it does not work any more? It looks the Apache