Nginx 基础
摘要:http_请求头, arg_参数 使用 比如User-Agent 则 $http_user_agent log_format 名称 '$http_*******' sub_status 查看连接,请求状态 常配置在http server location中 random_index 随机主页 sub
阅读全文
posted @
2019-07-17 16:43
1161588342
阅读(109)
推荐(0) 编辑
Nginx 前后端分离, 多个二级域名配置
摘要:在安装Nginx之后 /etc/nginx/nginx.conf 里面有一段 include /etc/nginx/conf.d/*.conf; 通常我们配置二级域名放在这里面 先来看一级域名配置 log_format main '$remote_addr - $remote_user [$time
阅读全文
posted @
2019-06-21 10:58
1161588342
阅读(3121)
推荐(0) 编辑
Nginx IP限制
摘要:https://www.cnblogs.com/guxiaobei/p/8126322.html
阅读全文
posted @
2018-09-07 11:16
1161588342
阅读(79)
推荐(0) 编辑
Nginx 图片服务器搭建
摘要:安装Nginx >yum install -y nginx 安装vsftpd http://www.cnblogs.com/eason-d/p/9057389.html 2: 创建目录 /usr/local/upload/images/ 用来存放图片 # mkdir /usr/local/uploa
阅读全文
posted @
2018-05-18 17:11
1161588342
阅读(136)
推荐(0) 编辑
Nginx 实现 IP+项目名 访问
摘要:参考: https://blog.csdn.net/csdn1152789046/article/details/51362735 修改前 项目放在Tomcat的webapps/ROOT/ 目录下面 http://IP 直接访问 修改后 项目(mall) 放在webapps/ 目录下面 移除原来we
阅读全文
posted @
2018-04-02 11:39
1161588342
阅读(5536)
推荐(1) 编辑
Nginx 文件下载资源配置
摘要:下面配置是针对所有.apk文件下载 本人 需要.apk文件 放在Linux里面作为下载, 放在/root目录下面出现403 Forbinden, (暂时不清楚), 放在其他目录正常 然后新建目录/resource/apk目录把*.apk文件扔进去 Nginx配置如下
阅读全文
posted @
2018-03-23 12:04
1161588342
阅读(8953)
推荐(0) 编辑
Nginx rewrite使用
摘要:转自: https://www.cnblogs.com/czlun/articles/7010604.html
阅读全文
posted @
2018-02-28 10:52
1161588342
阅读(74)
推荐(0) 编辑
Nginx 系统维护配置
摘要:转自: http://blog.csdn.net/kkgbn/article/details/52153383 tomcat关闭后 请求返回502状态码 在nginx的html目录新建个502.html 所有的tomcat都关闭,测试结果如图所示 检测nginx配置后重启
阅读全文
posted @
2018-02-28 10:44
1161588342
阅读(232)
推荐(0) 编辑
Nginx Linux yum安装
摘要:-- 安装>yum install nginx -y -- 查看>whereis nginx>目录>/usr/sbin/nginx 执行命令>/etc/nginx 配置文件位置>启动>/usr/sbin/nginx -c /etc/nginx/nginx.conf>停止sbin>nginx -s stop
阅读全文
posted @
2018-01-27 10:22
1161588342
阅读(98)
推荐(0) 编辑
Nginx 前后端分离配置 分发
摘要:前端项目VUE 端口8081 , 后端项目JAVA 端口8080 #js, css缓存 location ~ .*\.(js|css)$ { proxy_set_header Host $host; proxy_pass http://127.0.0.1:8080; proxy_redirect o
阅读全文
posted @
2018-01-27 10:17
1161588342
阅读(503)
推荐(0) 编辑
Nginx bind() to 0.0.0.0:8000 failed (10013: 错误解决
摘要:本人配置Nginx 8000端口, 启动Nginx 失败, 查看日志logs/error.log出现如下提示 结束酷狗进程就Ok叻
阅读全文
posted @
2017-10-13 15:55
1161588342
阅读(412)
推荐(0) 编辑
Nginx location 匹配
摘要:转载自:http://www.nginx.cn/115.html location匹配命令 ~ #执行 区分大小写 的 正则匹配,~* #执行不区分大小写 的 正则匹配,^~ #^~表示普通字符匹配,如果该选项匹配,只匹配该选项,不匹配别的选项,一般用来匹配目录= #进行普通字符精确匹配@ #"@"
阅读全文
posted @
2017-10-12 19:29
1161588342
阅读(177)
推荐(0) 编辑
Windows下Nginx与tomcat组合简单使用
摘要:本文转载自: http://www.cnblogs.com/naaoveGIS/ 1.背景 项目中瓦片资源越来越多,如果提高瓦片的访问效率是一个需要解决的问题。这里,我们考虑使用Nginx来代理静态资源进行初步解决。 2.Nginx简介 Nginx ("engine x") 是一个高性能的HTTP和
阅读全文
posted @
2017-10-12 12:32
1161588342
阅读(283)
推荐(0) 编辑
Nginx Windows 安装启动
摘要:原文连接:http://tengine.taobao.org/book/appendix_c.html#nginxwindows 下载 Nginx是开源软件,用户可以访问 http://nginx.org/ 网站获取源码包或Windows二进制文件下载。其中1.3.x版本为开发版本,1.2.x版本为
阅读全文
posted @
2017-10-11 18:51
1161588342
阅读(197)
推荐(0) 编辑