• linux下 Nginx gdb调试环境搭建

    日期:

    首次接触Nginx,听别人说Nginx的代码很美。所以尝试学习下下。也没怎么接触Nginx理论知识,所以没有对Nginx进行描述,纯粹是技术文章。。。本人研究Linux kernel 源头:apache+tomcat集群的负载均衡算法有问题,现象是apache把过多压力分配给本地tomcat,另...

  • nginx将请求转发到tomcat服务器

    日期:

    前面有讲过多台nginx实现负载均衡(请求从nginx到nginx)的配置方式,下面讲讲nginx将请求转发到tomcat的配置实例 nginx.conf中: http{includemime.types;default_typeapplication/octet-stream;#log_formatmain$remote_addr-$remote_user[$time_local]$req...

  • nginx怎样处理一个求情

    日期:

    本文参考文章:http://nginx.org/en/docs/http/request_processing.html nginx要处理一个请求,首先得接收到一个请求。 1. 基于名字的虚拟服务器 下面看看这个nginx配置文件的部分配置。 server{listen80;server_nameexample.orgwww.example.org;...}server{l...

  • 【整理】自动的 Nginx 反向代理配置

    日期:

    近期由于 HTTPS 漏洞的问题,公司领导要求把 HTTPS 相关使用完善起来,鉴于之前对 nginx 的理解非常的肤浅,所以本着边学边做的原则展开对相关文章的研究。 本文内容参考自《自动的 Nginx 反向代理配置》。 个人觉得:名字翻译成《自动化 Nginx 反向代理配置...

  • 如何在MacOS X上配置Nginx

    日期:

    前提条件: How to Configure and Install Nginx on Mac OS X 安装Nginx: 前提条件: 安装Xcode中的命令行工具 参考原文: How to Configure and Install Nginx on Mac OS X 安装Nginx: 1. 下载最新版本的Nginx nginx 1.4.7 2. 解压 tar xvzf nginx-1.4.7....

  • ubuntu下nginx启动配置文件

    日期:

    在 https://github.com/JasonGiedymin/nginx-init-ubuntu 获得的nginx配置文件 其中一些位置需要根据实际配置更改 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47...

  • Nginx Command

    日期:

    nginx的启动命令是: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf -c制定配置文件的路径,不加自动加载默认路径的配置文件。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [root@localhostnginx]#/usr/local/nginx/sbin/nginx-h nginxversion:ng...

  • Nginx的模块知识点

    日期:

    给每个模块排序是依靠: 1 2 3 4 5 ngx_max_module = 0; for (i = 0; ngx_modules[i]; i++) { ngx_modules[i]-index = ngx_max_module++; } nginx中最难的也是最重要的函数就是 1 ngx_init_cycle 里面做了大量的初始化操作,之前每次看nginx源码都卡在这个函...

  • nginx -t 测试错误

    日期:

    #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/oct...

  • nginx禁止域名被恶意cname

    日期:

    前提 目前我们在做一个机遇docker、JFinal的SaaS平台,暂时测试阶段! 今日,系统在做域名绑定的时候发现:未绑定过的域名cname到我们得三级域名上,会绑定到某个系统上! 基于名称的虚拟服务器 nginx请求匹配的时候是根据request的投信息host来判定哪个serv...