隐藏版本信息
nginx-1.14.0/src/core/nginx.h
define NGINX_VERSION "99no88"
define NGINX_SER "TDWB"
vim src/http/ngx_http_header_filter_module.c
49行 static u_char ngx_http_server_string[] = "Server: TDWB" CRLF;
vim src/http/ngx_http_special_response.c
36 "<hr><center>TDWB</center>" CRLF
./configure --prefix=/usr/local/nginx --user=nginx --with-http_ssl_module --with-http_gunzip_module
设置缓存
location ~*.(ico|gif|bmp|jpg|jpeg|png|swf|js|css|mp3) {
root html;
expires 60d;
}
location ~ \.php$ { #开启php解析
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME script$fastcgi_script_name
改为:
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html$fastcgi_script_name; #指定路径
include fastcgi_params;
肤色小说家|跨性别|trans|疏离 https://transdreams.net 失去的要学会忘,记得不到的要懂得放弃。