conf配置:
server {
listen 80;
server_name www.-------.com;
server_name_in_redirect on;
root /usr/local/wwwww;
location ~ .$ #所有页面均交由tomcat处理
{
proxy_pass http://localhost:8888;#转向tomcat处理
}
passenger_enabled on;
}