随笔分类 -  nginx

nginx+tomcat+https
摘要:nginx生成证书: 方案一、1、cd /usr/local/nginx/conf2、openssl genrsa -des3 -out server-wiki.key 10243、openssl req -new -key server-wiki.key -out server-wiki.csr4 阅读全文

posted @ 2017-11-10 15:13 renliping 阅读(224) 评论(0) 推荐(0)

关于配置test.wap.fuqinjinrong.com域名失败问题
摘要:upstream fuqin-wap { server 123.57.163.30:8010;}server { listen 80; server_name test.wap.fuqinjinrong.com; index index.html index.htm index.jsp; locat 阅读全文

posted @ 2017-10-30 11:14 renliping 阅读(265) 评论(0) 推荐(0)

nginx配置location总结及rewrite规则写法
摘要:https://segmentfault.com/a/1190000002797606 location正则写法 遇到的问题: 通过IP可以访问,通过域名只能解析首页,图片css访问不到,无200状态,需要把location中的proxy http://项目名改成对应的IP 一个示例: 已=开头表示 阅读全文

posted @ 2017-09-18 19:47 renliping 阅读(181) 评论(0) 推荐(0)

nginx http 转发到 https
摘要:遇到的问题: 原因: 问题2: 去掉红框处或者 阅读全文

posted @ 2017-01-13 14:51 renliping 阅读(227) 评论(0) 推荐(0)

放爬虫nginx
摘要:禁止火狐浏览器访问 例子 阅读全文

posted @ 2017-01-08 23:16 renliping 阅读(115) 评论(0) 推荐(0)

nginx日志切割
摘要:添加到计划任务 需要重启 一般都是00点生成前一天日志 阅读全文

posted @ 2017-01-08 20:10 renliping 阅读(100) 评论(0) 推荐(0)

nginx日志格式含义
摘要: 阅读全文

posted @ 2017-01-08 20:04 renliping 阅读(152) 评论(0) 推荐(0)

nginx防盗链
摘要:如果有外链的合作,需要把合作公司的域名加进来 阅读全文

posted @ 2017-01-08 19:46 renliping 阅读(94) 评论(0) 推荐(0)

nginx 状态
摘要: 阅读全文

posted @ 2017-01-08 16:48 renliping 阅读(87) 评论(0) 推荐(0)

nginx 安全优化
摘要:http://nginx.org/en/docs/http/ngx_http_access_module.html 官网 1、允许特定的ip访问,拒绝特定ip server { listen 80; server_name localhost; location / { allow 192.168. 阅读全文

posted @ 2017-01-06 15:53 renliping 阅读(175) 评论(0) 推荐(0)

nginx 虚拟主机基于端口的搭建
摘要:首先配置nginx.conf [root@localhost conf]# cat nginx.confworker_processes 1;user nginx nginx;error_log /app/log/nginx.error.log; events { use epoll; worker 阅读全文

posted @ 2017-01-05 17:28 renliping 阅读(1373) 评论(0) 推荐(0)

nginx 网站搭建
摘要:nginx目录详解 默认nginx做了nginx配置文件的备份 #查看nginx配置文件去掉#号的内容,并且追加到nginx.conf.tmp egrep -v "#|^$" nginx.conf > nginx.conf.tmp mv nginx.conf.tmp nginx.conf #简化的配 阅读全文

posted @ 2017-01-05 14:54 renliping 阅读(199) 评论(0) 推荐(0)

nginx安装
摘要:nginx工作模式-->1个master+n个worker进程 安装nginx的所需pcre库【用于支持rewrite模块】 下载软件方法: 搜索 pcre download 网址:http://pcre.org 下载pcre包 wget ftp://ftp.csx.cam.ac.uk/pub/so 阅读全文

posted @ 2017-01-05 11:22 renliping 阅读(221) 评论(0) 推荐(0)

导航