使用Nginx如何配置Tomcat访问日志记录真实IP
3、日志结果 # tail -f /opt/tomcat/logs/localhost_access.log-------------------------------------------------------------------------------------------------------------------
114.249.197.149 - - GET /index.jsp HTTP/1.0 302 - 45Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.5 Safari/537.31 0.045
114.249.197.149 - - GET /login.action HTTP/1.0 200 5054 5572Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.5 Safari/537.31 5.572
114.249.197.149 - - GET /images/login/spacer.gif HTTP/1.0 200 43 1Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.5 Safari/537.31 0.001
114.249.197.149 - - GET /images/login/login_r1_c1.jpg HTTP/1.0 200 23667 1Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.5 Safari/537.31 0.001
114.249.197.149 - - GET /images/login/login_r1_c3.jpg HTTP/1.0 200 29366 2Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.5 Safari/537.31 0.002
页:
[1]