Nginx configures reverse proxy to realize thief
Brother Si once reposted an article “How Nginx Reverse Proxy and Replaces URLs”. Although he didn’t steal the content of other people’s sites, the basic process has been realized. Yesterday, someone asked the public service how to use the anti-generation of nginx to realize the thief function according to the tutorial based on the lnmp one-key package of Junge. The public service briefly writes the idea here. Install some preparatory software yum -y –noplugins install wget zip yum -y –noplugins install unzip yum -y –noplugins install gcc yum -y –noplugins install make yum -y –noplugins install pcre-devel yum -y –noplugins install openssl-devel yum -y install subversion Download software wget -c http://www.nginx.org/download/nginx-1.0.8.tar.gz wget -c http://wiki.nginx.org/images/5/51/Nginx-accesskey-2.0.3.tar.gz svn checkout http://substitutions4nginx.googlecode.com/svn/trunk/substitutions4nginx-read-only compile software tar -zxf Nginx-accesskey-2.0.3.tar.gz tar zxf nginx-1.0.8.tar.gz cd nginx-1.0.8 ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-ipv6 –with-http_gzip_static_module –with-ipv6 — with-pcre –with-http_sub_module –add-module=/root/substitutions4nginx-read-only –add-module=/root/nginx-accesskey-2.0.3 If there are no errors in the compilation, then execute: make but do not make install After compiling, there is an nginx execution in the objs directory line file, first back up the original old nginx file, execute: mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old , and then cp the nginx under the new objs to sbin, Execution: cp objs/nginx /usr/local/nginx/sbin/nginx Execute the…