Nginx Reverse proxy Substitutions4nginx module implements replacement character theft station NGINX.CONF configuration
Worker_processes 1;Events {Worker_connections1024;}http {include mime.types;Default_type Application/octet-stream;Sendfile on;Keepalive_timeout 65;Server_tokens off;Gzip on;Gzip_min_length 1k;Gzip_buffers 4 16k;Gzip_comp_level 2;Gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image /jpeg Image/gif Image/png;Gzip_vary off;Gzip_disable "MSIE [1-6]\.";Proxy_cache_path/home/zbs/jiajucache levels=1:2 keys_zone=jiaju:20m max_size=2g inactive=72h;Server {Listen80;server_name jiaju.ydjy365.com;Location /{subs_filter ' jiaju.sg169.com ' jiaju.ydjy365.com ' gi;Proxy_set_header Host jiaju.sg169.com;Proxy_set_header X-real-ip $remote _addr;Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;Proxy_set_header Referer http://jiaju.sg169.com;Proxy_set_header accept-encoding ';Proxy_pass http://jiaju.sg169.com; } location ~. *\. (gif|jpg|jpeg|png|bmp|swf) $ {expires 10d;Proxy_pass http://jiaju.sg169.com;Proxy_cache Jiaju;Proxy_cache_valid 72h;} location ~. *\. (JS|CSS) $ {expires 12h;Proxy_pass http://jiaju.sg169.com;Proxy_cache Jiaju;Proxy_cache_valid 12h;} error_page502 503 504/50x.html;Location =/50x.html {root HTML; } }}
Nginx Reverse proxy Substitutions4nginx module implements replacement character theft station NGINX.CONF configuration