把终端显示改为英文: 1、先备份语言配置文件 cp /etc/locale.conf /home/locale […]
nginx http to https
if ($server_port !~ 443){ rewrite ^(/.*)$ https://$host […]
Nginx出现403 forbidden
nginx访问时报403, 于是查看nginx日志,路径为/var/log/nginx/error.log。打 […]
解决nginx报错:nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied)
报错描述: nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: […]
上传文件报413 Request Entity Too Large错误解决办法
产生这种原因是因为服务器限制了上传大小 1、nginx服务器的解决办法 修改nginx.conf的值就可以解决 […]
Nginx配置Https反向代理
ZERO 持续更新 请关注:https://zorkelvll.cn/blogs/zorkelvll/arti […]
域名、https、nginx反向代理小结
1、域名备案:指域名与公网ip的绑定,绑定后即可使用80/443等端口。 2、域名添加A记录子域名后指定对应的 […]
nginx上传大文件,413错误解决
在nginx里增加了配置。
1 2 3 4 |
client_max_body_size 500m; proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; |
我觉得,应该只用 […]
nginx开启目录浏览
1 2 3 4 5 6 7 8 9 10 11 |
location /download { include /usr/local/nginx/html/Nginx-Fancyindex-Theme/fancyindex.conf; # 目录美化配置 root /home/map/www/; #指定目录所在路径 autoindex on; #开启目录浏览 autoindex_format html; #以html风格将目录展示在浏览器中 autoindex_exact_size off; #切换为 off 后,以可读的方式显示文件大小,单位为 KB、MB 或者 GB autoindex_localtime on; #以服务器的文件时间作为显示的时间 charset utf-8,gbk; #展示中文文件名 } |
nginx 升级时 [emerg] module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so" version 1010003 instead of 1016000 in /usr/share/nginx/modules/mod-http-geoip.conf:1
nginx -V
1 2 |
[root@VM_0_15_centos ~]# nginx -V nginx version: nginx/1.10.2 |
检查/换源 […]
verynginx-web防火墙
VeryNginx 转载:https://github.com/alexazhou/VeryNginx Ver […]
点击劫持漏洞:使用X-Frame-Options 解决方法(应用tomcat)
发现项目中存在 X-Frame-Options 低危漏洞: 使用 X-Frame-Options X-Fram […]