摘要:        
http中: proxy_cache_path /nginx/cache/first levels=1:2 keys_zone=first:20m max_size=1g inactive=60m; proxy_cache_path /nginx/cache/first 代理缓存路径是/nginx/    阅读全文
posted @ 2018-08-03 15:30
炎泽
阅读(169)
评论(0)
推荐(0)
        
            
        
        
摘要:        
经过反向代理后,客户端与web服务器之间添加了中间层,因此: 1.代理服务器使用$remote_addr拿到的会是客户端的ip 2. web服务器使用$remote_addr拿到的会是代理服务器的ip 3.客户端使用getRemoteAddr()拿到的会是反向代理服务器的ip 为了让服务器能得到客户    阅读全文
posted @ 2018-08-03 11:44
炎泽
阅读(3561)
评论(0)
推荐(1)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号