随笔分类 - nginx
摘要:一 环境情况: LB 10.240.35.55 web1 10.240.35.56 web2 10.240.35.57 web3 10.240.35.58 二.负载均衡 LB 配置: server{ listen 80; server_name www.ceshi.com; location /{
阅读全文
摘要:一. LNMP组成 二. 下载源码包 wget http://nginx.org/download/nginx-1.17.2.tar.gz wget https://www.php.net/distributions/php-7.3.7.tar.gz wget https://dev.mysql.c
阅读全文
摘要:server { listen 88; server_name www.ceshi.com; location /www { root /data/; root是当匹配www的时候到/data/www/下找index.html 如果data下没有www目录就会报错 index index.html;
阅读全文
摘要:默认nginx是不支持https的正向代理的,要想通过nginx的正向代理,作为https服务器,需要增加一个模块并重新编译nginx。 环境: centos 7 所需要的文件: https://github.com/chobits/ngx_http_proxy_connect_module http://nginx.org/packages/centos/7/SRPMS/nginx-1...
阅读全文