
nginx
Felix_CB
我总高高在上,但却走不出这人生低谷
展开
-
nginx设置请求body大小
设置如下:Syntax:client_max_body_size sizeDefault:client_max_body_size 1mContext:http, server, locationSets the maximum allowed size of the client request body, specified in the “Content...转载 2019-01-15 12:24:24 · 17691 阅读 · 0 评论 -
nginx日志切割、定时清理
切割清理脚本:#!/bin/bash#Nginx日志路径LOGPATH=/opt/nginx/logs/#前一天日期YESTERDAY=$(date -d "yesterday" +"%Y-%m-%d")#清除策略EXPIRE=`date +%Y-%m-%d --date '3 days ago'`PID=${LOGPATH}nginx.pidmv ${LOGPATH}acc...原创 2019-01-23 17:11:58 · 887 阅读 · 0 评论 -
Nginx 实现按域名分类转发
通过nginx配置不同的域名来实现转发到不同的tomcatbook.felix.com -> 127.0.0.1:8001movie.felix.com -> 127.0.0.1:8002#配置负载均衡池#Demo1负载均衡池upstream book_pool{ server 127.0.0.1:8001;}#Demo2负载均衡池upstream mov...转载 2019-03-07 14:16:57 · 924 阅读 · 0 评论