
nginx
SAN_YUN
这个作者很懒,什么都没留下…
展开
-
nginx 编译
./configure --user=admin --group=admin --prefix=/dist/sys/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=`find /duitang/dist/rpm -maxdepth 1 -name "pcre*" -type d`; make &...原创 2012-10-18 20:47:23 · 122 阅读 · 0 评论 -
Nginx Rewrite
基本用法:rewrite 正则 替换 标志位 比如把 /app/android/wallpaper 跳转到首页 location /app/iphone/wallpaper { rewrite ^ http://www.duitang.com/ permanent; } Nginx的rewrite还提供了其他指令: set if ...原创 2012-07-06 17:01:36 · 171 阅读 · 0 评论 -
Nginx日志分割脚本
#/bin/bash LOGS_PATH="/usr/local/nginx/logs" YESTERDAY=$(date -d "yesterday" +%Y%m%d) pid_path="/usr/local/nginx/logs/nginx.pid" cd $LOGS_PATH for log_name in ` ls *.access.log ` do mv ${LOGS_...原创 2017-09-25 18:53:39 · 308 阅读 · 0 评论