![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx应用
ChlatZed
这个作者很懒,什么都没留下…
展开
-
9.rewrite规则
1.功能实现url重写以及重定向2.场景URL访问跳转,支持开发设计页面跳转、兼容性支持、展示效果等SEO优化维护后台维护、流量转发等安全3.配置语法Syntax: rewrite regex replacement [flag];Default: -Context:server, location, if配置示例rewrite ^(.*)...原创 2019-12-31 10:34:25 · 242 阅读 · 0 评论 -
8.动静分离配置
配置upstream java_api{ server 127.0.0.1:8080;}server { listen 80; server_name localhost; #charset koi8-r; access_log /var/log/nginx/log/host.access.log main; root /o...原创 2019-12-31 10:33:00 · 207 阅读 · 0 评论 -
7.nginx服务之缓存服务配置
1.配置语法Syntax: proxy_cache_path path [levels=levels] [use_temp_path=on|off] keys_zone=name:size [inactive=time] [max_size=size] [manager_files=number] [manager_sleep=time] [manager_threshold=time] [lo...原创 2019-10-23 16:46:47 · 160 阅读 · 0 评论 -
第1节:nginx安装
nginx官网下载 http://nginx.org/en/download.html安装依赖yum -y install gcc gcc-c++ autoconf pcre pcre-devl make automakeyum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-develyum insta...原创 2019-06-17 15:06:00 · 158 阅读 · 0 评论 -
2.nginx访问控制-http_access_module
http_access_moduleSyntax: allow address | CIDR | unix: |all;Default -Context: http,server,location,limit_exceptSyntax: deny address | CIDR |unix: | all;Default: -Context:http,server,location,l...原创 2019-06-18 14:25:03 · 211 阅读 · 0 评论 -
3.nginx访问控制之http_auth_basic_module
Default:auth_basic off;Context:http,server,location,limit_except```Syntax:`auth_basic_user_file file;`Default:`-`Context:`http,server,location,limit_except`首先生成密码文件htpasswd -c ./auth_con...原创 2019-08-27 11:16:36 · 262 阅读 · 0 评论 -
4.nginx之静态资源web服务
1.sendfileSyntax: sendfile on|off;Default: sendfile off;Context: http, server, location, if in location引读:--with-file-aio异步文件读取2.tcp_nopushSyntax: tcp_nopush on | off;Default:tcp_nopuush off;...原创 2019-08-27 11:18:07 · 166 阅读 · 0 评论 -
5.nginx服务之代理服务
1.配置语法Syntax: proxy_pass URL;Default: -COntext: location ,if in location, limit_except其他配置语法-缓冲区Syntax: proxy_buffering on | off;Default: proxy_buffering on;Context:http, server, location 扩展...原创 2019-09-25 10:55:23 · 119 阅读 · 0 评论 -
6.nginx服务之负载均衡服务
1.upstream配置语法Syntax: upstream name {...}Default:-Context:http2.简单示例upstream balance { server 192.168.127.21:8001; server 192.168.127.21:8002; server 192.168.127.21:8003;}server { liste...原创 2019-09-25 11:03:52 · 151 阅读 · 0 评论