Nginx 이미지 프 록 시 서버

Windows 에서 Nginx 이미지 프 록 시 서버
		 location ~ .*\.(gif|jpg|jpeg|png)$ {  
      expires 24h;  
      root E:/nginx-shaguoCloud/image;#          
      access_log E:/nginx-shaguoCloud/image;#      
      proxy_store on;  
      proxy_store_access user:rw group:rw all:rw;  
      proxy_temp_path         E:/nginx-shaguoCloud/image;#      
      proxy_redirect          off;  
      
      proxy_set_header        Host 127.0.0.1;  
      proxy_set_header        X-Real-IP $remote_addr;  
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;  
      client_max_body_size    10m;  
      client_body_buffer_size 1280k;  
      proxy_connect_timeout   900;  
      proxy_send_timeout      900;  
      proxy_read_timeout      900;  
      proxy_buffer_size       40k;  
      proxy_buffers           40 320k;  
      proxy_busy_buffers_size 640k;  
      proxy_temp_file_write_size 640k;  
     
      } 

Linux 에서 Nginx 이미지 서버 설정
 location ~ .*\.(gif|jpg|jpeg|png)$ {  
            expires 24h;  
            root /home/images/;#          
            #access_log /home/nginx/logs/images.log;#         
            proxy_store on;  
            proxy_store_access user:rw group:rw all:rw;  
            proxy_temp_path         /home/images/;#      
            proxy_redirect          off;  

            proxy_set_header        Host 127.0.0.1;  
            proxy_set_header        X-Real-IP $remote_addr;  
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;  
            client_max_body_size    10m;  
            client_body_buffer_size 1280k;  
            proxy_connect_timeout   900;  
            proxy_send_timeout      900;  
            proxy_read_timeout      900;  
            proxy_buffer_size       40k;  
            proxy_buffers           40 320k;  
            proxy_busy_buffers_size 640k;  
            proxy_temp_file_write_size 640k;  

        }

좋은 웹페이지 즐겨찾기