nginx 配置atcion,和验证码

验证码部分:

      location ~* ^.+(authImgServlet) {

    root   /aa/bb/cc/dd/;

    index  index.htm index.jsp login.jsp;

    proxy_store off;

    proxy_set_header X-Real-IP $remote_addr;

    proxy_set_header Host $host;

 

    client_max_body_size        10m;

    client_body_buffer_size     268k;

    proxy_connect_timeout       600;

    proxy_send_timeout          600;

    proxy_read_timeout          600;

    proxy_buffer_size           128k;

    proxy_buffers               4 132k;

    proxy_busy_buffers_size     164k;

    proxy_temp_file_write_size  164k;

    proxy_ignore_client_abort on;

 

    proxy_pass  http://www.abc.com;

  }

java  action配置,有时候tomcat可以,但是action找不到页面...

  location ~* ^.+\.(action) {

    root   /aa/bb/cc/dd/;

    index  index.htm index.jsp login.jsp;

    proxy_store off;

    proxy_set_header X-Real-IP $remote_addr;

    proxy_set_header Host $host;

 

    client_max_body_size        10m;

    client_body_buffer_size     268k;

    proxy_connect_timeout       600;

    proxy_send_timeout          600;

    proxy_read_timeout          600;

    proxy_buffer_size           128k;

    proxy_buffers               4 132k;

    proxy_busy_buffers_size     164k;

    proxy_temp_file_write_size  164k;

    proxy_ignore_client_abort on;

 

    proxy_pass  http://www.abc.com;

  }



你可能感兴趣的:(tomcat,linux,nginx)