模块名称描述版本如何禁用
CoreControl ports, locations, error pages, aliases, and other essentials.--without-http
AccessAllow/deny based on IP address.--without-http_access_module
Auth BasicBasic HTTP authentication.--without-http_auth_basic_module
Auto IndexGenerates automatic directory listings.--without-http_autoindex_module
BrowserInterpret "User-Agent" string.0.4.3--without-http_browser_module
CharsetRecode web pages.--without-http_charset_module
Empty GIFServe a 1x1 image from memory.0.3.10--without-http_empty_gif_module
FastCGIFastCGI Support.--without-http_fastcgi_module
GeoSet config variables using key/value pairs of IP addresses.0.1.17--without-http_geo_module
GzipGzip responses.--without-http_gzip_module
HeadersSet arbitrary HTTP response headers.
IndexControls which files are to be used as index.
Limit RequestsLimit frequency of connections from a client.0.7.20--without-http_limit_req_module
Limit ZoneLimit simultaneous connections from a client. Deprecated in 1.1.8, use Limit Conn Instead.0.5.6--without-http_limit_zone_module
Limit ConnLimit concurrent connections based on a variable.--without-http_limit_conn_module
LogCustomize access logs.
MapSet config variables using arbitrary key/value pairs.0.3.16--without-http_map_module
MemcachedMemcached support.--without-http_memcached_module
ProxyProxy to upstream servers.--without-http_proxy_module
RefererFilter requests based on Referer header.--without-http_referer_module
RewriteRequest rewriting using regular expressions.--without-http_rewrite_module
SCGISCGI protocol support.0.8.42--without-http_scgi_module
Split ClientsSplits clients based on some conditions0.8.37--without-http_split_clients_module
SSIServer-side includes.--without-http_ssi_module
UpstreamFor load-balancing.--without-http_upstream_ip_hash_module (ip_hash directive only)
User IDIssue identifying cookies.--without-http_userid_module
uWSGIuWSGI protocol support.0.8.40--without-http_uwsgi_module
X-AccelX-Sendfile-like module.
proxy模块中常用的指令时proxy_pass和proxy_cache.
#Compression Settings
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# Some version of IE 6 don't handle compression well on some mime-types,
# so just disable for them
gzip_disable "MSIE [1-6].(?!.*SV1)";
# Set a vary header so downstream proxies don't send cached gzipped
# content to IE6
gzip_vary on;
#end gzip
#cache begin
proxy_buffering on;
proxy_cache_valid any 10m;
proxy_cache_path /data/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m;
proxy_temp_path /data/temp;
proxy_buffer_size 4k;
proxy_buffers 100 8k;
#cache end
## Basic reverse proxy server ##
## Apache (vm02) backend for www.example.com ##
upstream apachephp {
server www.quancha.cn:8080; #Apache1
}
## Start www.quancha.cn ##
server {
listen 80;
server_name *.quancha.cn;