ngnix 配置反向代理
通过shell 脚本
#!/bin/bash
yum -y install wget pcre-devel openssl openssl-devel libtool gcc automake autoconf libtool make
wget http://nginx.org/download/nginx-1.6.3.tar.gz
tar -zxvf nginx-1.6.3.tar.gz -C /usr/local
cd /usr/local/nginx-1.6.3
./configure --prefix=/usr/local/nginx-1.6.3 --with-http_stub_status_module --with-http_ssl_module
make && make install
cd /usr/local/nginx-1.6.3/cnf
修改配置文件

然后
nginx -s reload
看效果

    it大牛的分享知识网站http://www.itxuexiwang.com/
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号