首页
运维杂记
操作系统
域名解析
关于
木东 blog
累计撰写
59
篇文章
累计创建
52
个标签
累计收到
0
条评论
栏目
首页
运维杂记
操作系统
域名解析
关于
目 录
CONTENT
以下是
nginx
相关的文章
nginx安全问题处理
背景 接到安全团队反馈问题: Security issues X-Content-Type-Options header is missing over https. You need to implement X-Content-Type-Options header, refer to Web
2025-01-14
56
0
0
web服务
查看apache、nginx、mysql、php编译参数
查看apache编译参数: cat /apache/build/config.nice 查看nginx编译参数: nginx -V 查看php编译参数: php -i|grep configure 查看mysql编译参数: grep CONFIGURE_LINE /mysql/bin/mysq
2025-01-14
47
0
0
web服务
nginx & apache & lighttpd基础
Linux下常用的web服务: 静态:Apache、Nginx、Lighttpd 动态:Tomcat、Php 1. lighttpd Lighttpd是一个具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。支持FastCGI, CGI, Auth, 输出压缩(output comp
2025-01-14
45
0
0
web服务
nginx log各种过滤分析
log_format用于设置日志格式,格式为:log_format 格式名 样式,配置字段http 默认的combined: log_format combined '$remote_addr - $remote_user [$time_local] ' ' "$request" $status $
2021-11-11
40
0
0
web服务
nginx容器化部署
1.创建挂载目录 mkdir -p /data/nginx/log 2.准备配置文件 2.1 准备证书 内置一份主机IP的证书,如果使用域名方式,使用客户提供的证书文件替换。 ls /data/nginx/*.pem cert.pem key.pem 2.2 准备nginx.conf 如需增减服
2021-06-05
11
0
0
容器编排
nginx日志切割脚本
nginx日志切割 #!/bin/bash #Nginx 日志文件存放的路径 nginx_access_log="/usr/local/openresty/nginx/logs/access" nginx_error_log="/usr/local/openresty/nginx/logs/erro
2019-12-04
47
0
0
web服务
Nginx location Rewrite参数
一 、Nginx 正则及 location 匹配 1. Nginxn location 规则匹配 ^~ 标识符匹配后面跟一个字符串。匹配字符串后将停止对后续的正则表达式进行匹配,如 location ^~ /images/,在匹配了/images/这个字符串后就停止对后续的正则匹配 = 精准匹
2019-11-22
38
0
0
web服务
nginx进阶
nginx开源版本下载地址:http://nginx.org/en/download.html 1. nginx安装 get http://nginx.org/download/nginx-1.14.0.tar.gz tar xf nginx-1.14.0.tar.gz 源码目录/root/ngin
2019-09-04
32
0
0
web服务
Nginx反向代理问题
1. nginx代理问题 1.1 nginx反代到nginx 问题: 使用域名可以访问,使用IP报404 解决: 在location段proxy_pass参数上面加上一行: proxy_set_header Host xxx.com; 1.2 nginx反代到项目 问题: location匹配到规
2019-08-15
40
0
0
负载均衡和反向代理
web程序性能动态追踪案例
安装sysdig工具 curl -s https://s3.amazonaws.com/download.draios.com/stable/install-sysdig | sudo bash 查看一台机器的所有HTTP GET/POST 请求 sysdig -s 2000 -A -c echo
2017-12-05
31
0
0
web服务
nginx优化
1. Nginx隐藏版本号 方法一:修改配置文件(适合已安装nginx的场景) vim /usr/local/nginx/conf/nginx.conf 28 server_tokens off; 如果php配置文件中配置了fastcgi_param SERVER_SOFTWARE选项,则编辑ph
2017-12-05
40
0
0
web服务
nginx+php应用优化
1.php-fpm参数调整 参数计算公式: pm.start_servers=min_spare_servers + (max_spare_servers - min_spare_servers) / 2 修改配置文件: vim php-fpm.conf pm = dynamic #进程管理方
2017-10-10
43
0
0
web服务
httpd虚拟主机
一、配置基于域名的虚拟用户 1.创建虚拟用户的网页根目录 cd /usr/local/httpd/htdocs/ mkdir benetcom cd benetcom echo "<h1>benet</h1>" > index.html cd .. mkdir accpcom cd accp
2016-09-10
46
0
0
web服务