Nginx Reverse proxy Substitutions4nginx module implements replacement character theft station NGINX.CONF configuration

Source: Internet
Author: User
Tags nginx reverse proxy

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.