• Nginx配置文件详细说明

    日期:

    在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络. #运行用户 user www-data; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; #工作模...

  • nginx+uwsgi来部署Django(修改)

    日期:

    1. 软件下载地址: uwsgi ? wget http: //projects.unbit.it/downloads/uwsgi-latest.tar.gz flup ? wget http: //www.saddi.com/software/flup/dist/flup-1.0.2.tar.gz django ? wget http: //media.djangoproject.com/releases/1.2/Django-1.2.5.tar.gz 2....

  • ./configure: error: the HTTP rewrite module requires the PCRE library

    日期:

    有时候,我们需要单独安装nginx,来处理大量的下载请求。单独在Centos5安装nginx遇到的rewrite和HTTP cache错误解决办法: wget http://nginx.org/download/nginx-0.8.33.tar.gz tar -zxvf nginx-0.8.33.tar.gz cd nginx-0.8.33 ./configure --prefix=/usr/l...

  • ngnix 防盗链配置

    日期:

    通用配置如下 location ~ .*\.(gif|jpg|jpeg| png |bmp|swf|mp3)$ { #access_log off; #以上扩展名文件(gif|jpg|jpeg| png |bmp|swf)不写入 日志文件中。 #valid_referers *.gangqinpuzi.com gangqinpuzi.com *.youdao.com *.google.cn *.google.com *.googl...

  • Linux下配置nginx支持.cgi

    日期:

    说明: 操作系统:CentOS 6.x web环境:php+nginx+ mysql nginx安装目录:/usr/local/nginx nginx配置文件:/usr/local/nginx/conf/nginx.conf nginx默认站点目录:/usr/local/nginx/html/ 需求:让nginx能够解析.cgi后缀的文件 具体操作: 一、安装perl-fcg...

  • 使用Nginx反向代理和proxy_cache缓存搭建CDN服务器加快Web访问速度

    日期:

    碰到问题: 移动用户访问web服务器 www.osyunwei.com 很慢 解决办法: 1、在移动机房放置一台nginx反向代理服务器 2、通过域名DNS智能解析,所有移动用户访问 www.osyunwei.com 时解析到nginx反向代理服务器 3、nginx反向代理服务器与web服务器之间采用专线...

  • Nginx内容缓存 Nginx content cache

    日期:

    原文地址: http://nginx.com/resources/admin-guide/caching/ Nginx content cache Nginx内容缓存 This chapter describes how to enable and configure caching responses received from proxied servers. When caching is enabled NGINX saves responses...

  • NGINX Web Server Nginx web 服务器

    日期:

    原文地址: http://nginx.com/resources/admin-guide/web-server/ NGINX Web Server Nginx web 服务器 This section describes: the most common configuration of a web server how to set up virtual servers and define locations for request processing...

  • Nginx 负载均衡 Nginx Load Balancing

    日期:

    原文地址: http://nginx.com/resources/admin-guide/load-balancer/ Nginx Load Balancing nginx 负载均衡 This section describes how to use NGINX and NGINX Plus as aload balancer. 本章将讨论如何使用Nginx和Nginx加做负载均衡 器 。 In This Section...

  • nginx 提供静态内容

    日期:

    Serving Static Content 提供静态内容 原文地址: http://nginx.com/resources/admin-guide/serving-static-content/ This section describes how to serve static content, how to use different ways of setting up the paths to look for files, and how...