
nginx
nginx
xixiyuguang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
nginx动静分离
动态静态nginx配置# cat /etc/nginx/nginx.conf# For more information on configuration, see:# * Official English Documentation: http://nginx.org/en/docs/# * Official Russian Documentation: http://nginx.org/ru/docs/user nginx;worker_p...原创 2021-03-12 20:53:50 · 135 阅读 · 0 评论 -
nginx压缩gzip
gzip on; #决定是否开启gzip模块,on表示开启,off表示关闭;gzip_min_length 1k; #设置允许压缩的页面最小字节(从header头的Content-Length中获取) ,当返回内容大于此值时才会使用gzip进行压缩,以K为单位,当值为0时,所有页面都进行压缩。建议大于1kgzip_buffers 4 16k; #设置gzip申请内存的大小,其作用是按块大小的倍数申请内存空间,param2:int(k) 后面单位...原创 2020-12-31 11:25:23 · 153 阅读 · 0 评论 -
nginx配置、proxy_passfast 和 cgi_pass区别,反向代理,负载均衡、nginx+fastcgi+php的并发阻塞问题
目录1、准备两个tomcat和一个nginx1.1、tomcat: http://127.0.0.1:80801.2、tomcat:http://127.0.0.1:80811.3、nginx:http://127.0.0.12、反向代理proxy_pass2.1、反向代理2.2、反向代理-使用upstream2.3、反向代理-负载均衡-轮循模式2.4、反向代理...原创 2020-04-29 17:08:17 · 2017 阅读 · 0 评论 -
nginx配置01-gzip压缩
1、gzipgzip配置的常用参数gzip on|off; #是否开启gzipgzip_buffers 32 4K| 16 8K #缓冲(压缩在内存中缓冲几块? 每块多大?)gzip_comp_level [1-9] #推荐6 压缩级别(级别越高,压的越小,越浪费CPU计算资源)gzip_disable #正则匹配UA 什么样的Uri不进行gzipgzip_...原创 2020-04-24 10:25:06 · 478 阅读 · 0 评论 -
nginx反向代理文件上传失败-413 Request Entity Too Large
1、错误数据<html><head> <title>413 Request Entity Too Large</title></head><body> <center> <h1>413 Request Entity Too Large</h1> </ce...原创 2020-04-24 09:48:05 · 2650 阅读 · 0 评论 -
nginx配置 alias和root的使用区别
1、前端配置 server { listen 7077; server_name localhost; location / { root /html; index index.html index.htm; try_files $uri $uri/ /index...原创 2020-04-12 12:04:22 · 158 阅读 · 0 评论 -
nginx在win下搭建文件服务器
两种方式:1. nginx的html外部的文件win下面的路径不做解释了,重启nginx之后,直接访问 http://localhost:8080 就可以直接映射到文件目录 keepalive_timeout 65; autoindex on; autoindex_exact_size on; autoindex_localtim...原创 2019-05-16 16:51:39 · 532 阅读 · 0 评论 -
proxy_pass和fastcgi_pass区别,反向代理,负载均衡、nginx+fastcgi+php的并发阻塞问题
http proxy: #列出所有服务器地址,nginx 自动均衡分发请求到各个服务器。 upstream frontends { ip_hash; server 192.168.199.1:8088; server 192.168.199.2:8089; } server { li...原创 2019-03-29 14:25:16 · 10191 阅读 · 2 评论