-
Nginx 配置之开启缓存过期时间
expires 默认单位:秒。 h:时 m:分 s:秒 y:年 location ~ .*\.(?:jpg|jpeg|gif|png|ico|cur|gz|
-
Nginx 配置之 PHP 路径配置
80 端口对应单个 PHP 服务 server { listen 80; server_name localhost; r
-
Nginx 配置之反向代理获取真实 IP
方法 保留代理之前的host: proxy_set_header Host $host; 保留代理之前的真实客户端IP: proxy_set_header X-
-
Nginx 配置之隐藏版本号
方法 打开Nginx主配置文件:nginx.conf,取消注释或添加配置语句。 server_tokens off; http { # ...省
2019-03-20, Views: 2618 , Topics: Nginx
-
Nginx 配置之 worker_processes
1.9.10 版本后可以配置 worker_processes auto; worker_cpu_affinity auto; 解释 0001表示启用第一个CP
2019-03-19, Views: 5527 , Topics: Nginx
-
Nginx 之基础命令
查看简要信息 nginx -v 查看详细信息 nginx -V 启动服务 nginx 重新加载配置文件 nginx -s reload 快速停止服务 nginx
2019-03-19, Views: 2749 , Topics: Nginx