nginx reverse proxy HTTP->HTTPS

dm.dv at cia.com dm.dv at cia.com
Fri May 30 20:53:01 MSD 2008


Простите  
за глупый  
вопрос. я  
пытаюсь  
установить  
nginx как reverse proxy для  
ретрансляции запросов http -> https. nginx и backend  рсположены на разных серверах. к сожалению никак не могу добиться успеха. подскажите что не  
так!
OS: sun solaris 10 (sparc).
Backend: sun webserver 7.0

My configuration:
---------------------------------------
user  nginx;
worker_processes  2;

error_log  logs/error.log;
error_log  logs/error.log  notice;

pid        logs/nginx.pid;


events {
     worker_connections  256;
}


http {
     include       mime.types;
     default_type  application/octet-stream;

     log_format  main  '$remote_addr - $remote_user [$time_local] $request '
                       '"$status" $body_bytes_sent "$http_referer" '
                       '"$http_user_agent" "$http_x_forwarded_for"';

     access_log  logs/access.log  main;

     sendfile       on;
     tcp_nopush     on;

     keepalive_timeout  65;
     #gzip  on;

     server {
         listen       80;
         server_name  wm1.idc.eng.domain.ca;

         access_log  logs/wm1.access.log  main;
         error_log   logs/wm1.error.log   debug;

         location / {
                 proxy_pass         https://wmail1.prod.domain.ca;
                 proxy_redirect     default;

                 proxy_set_header   Host             $host;
                 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    128k;

                 client_body_temp_path      /var/nginx/client_body_temp;

                 proxy_connect_timeout      90;
                 proxy_send_timeout         90;
                 proxy_read_timeout         90;
                 #proxy_send_lowat           12000;

                 proxy_buffer_size          4k;
                 proxy_buffers              4 32k;
                 proxy_busy_buffers_size    64k;
                 proxy_temp_file_write_size 64k;

                 proxy_temp_path            /var/nginx/proxy_temp;

             }

         error_page  404              /404.html;

     }

}






More information about the nginx-ru mailing list