文章分类 - nginx
摘要:在服务端获取客户端用户真是ip: 1.nginx配置: 在代理的每个location处添加以下配置: proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwa
阅读全文
摘要:对负载均衡的tomcat 中context.xml进行redis服务的配置: tomcat context.xml中配置 ( 配置redis服务 ) : <?xml version='1.0' encoding='utf-8'?> <Context> <WatchedResource>WEB-INF
阅读全文
摘要:nginx 配置文件nginx.conf: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfi
阅读全文

浙公网安备 33010602011771号