tar zxf nginx-0.9.4.tar.gz
cd /usr/local/nginx-0.9.4
./configure
make;make install
/usr/local/nginx/sbin/nginx //开启nginx
2.配置nginx做代理
vim /usr/local/nginx/conf/nginx.conf
如果是代理静态页面的话作如下修改:
localtion ~.html$ {
proxy_pass http://back;
}
tar zxf nginx-0.9.4.tar.gz
cd /usr/local/nginx-0.9.4
./configure
make;make install
/usr/local/nginx/sbin/nginx //开启nginx
2.配置nginx做代理
vim /usr/local/nginx/conf/nginx.conf
如果是代理静态页面的话作如下修改:
localtion ~.html$ {
proxy_pass http://back;
}