文章分类 -  nginx

摘要:在服务端获取客户端用户真是ip: 1.nginx配置: 在代理的每个location处添加以下配置: proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwa 阅读全文
posted @ 2018-06-22 18:27 Eflying 阅读(271) 评论(0) 推荐(0)
摘要:对负载均衡的tomcat 中context.xml进行redis服务的配置: tomcat context.xml中配置 ( 配置redis服务 ) : <?xml version='1.0' encoding='utf-8'?> <Context> <WatchedResource>WEB-INF 阅读全文
posted @ 2017-06-12 15:48 Eflying 阅读(85) 评论(0) 推荐(0)
摘要:nginx 配置文件nginx.conf: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfi 阅读全文
posted @ 2017-06-12 15:37 Eflying 阅读(88) 评论(0) 推荐(0)