1.nginx.conf配置

引用
server {

limit_connmyzone10;

listen80;

server_namenew.iteye.com;//要跳转的URl

#charsetkoi8-r;

#access_loglogs/host.access.logmain;

location/{

proxy_passhttp://web;

proxy_redirectoff;

proxy_set_headerHost$host;

proxy_set_headerX-Real-IP$remote_addr;

proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;

}

error_page404/404.html;

location=/404.html{

root/usr/share/nginx/html;

}

error_page500502503504/50x.html;

location=/50x.html{

root/usr/share/nginx/html;

}

}

2.tomcat配置

引用
<Host  appBase="" name="new.iteye.com">

<Contextpath=""docBase="/var/www/webapps/newJavaEye"reloadable="true">

</Context>

</Host>