随笔分类 - Nginx
摘要:两个目的: 1)屏蔽/login.jsp等路径,防止公网尝试爆破 2)启用https 实践之后,配置如下: server { listen 80 default; server_name _; return 403; } server { listen 80; server_name jira.xx
阅读全文
摘要:本地yum安装的nginx 在/etc/nginx 默认配置文件在/etc/nginx/nginx.conf 确保include /etc/nginx/conf.d/*.conf未被注释 在/etc/nginx/conf.d/文件夹下添加如下download.conf配置文件 server { li
阅读全文
摘要:报错nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/nginx/ssl/myxxxxgame201904.key") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start lin
阅读全文