nginx reverse proxy - owa

 

 


 

# OWA 2010

新的 Link 在 port 8443 上行.

DOMAIN.conf

server {
    location /owa {
        include                 acl_ip.conf;
        include                 proxy_params.conf;
        include                 proxy_settings.conf;
        proxy_pass              http://MyBackendHTTP;
        proxy_redirect          http://DOMAIN/owa https://DOMAIN:8443/owa;
    }
    location /ecp {
        include                 acl_ip.conf;
        include                 proxy_params.conf;
        include                 proxy_settings.conf;
        proxy_pass              https://MyBackendHTTPS;
        proxy_redirect          https://DOMAIN/ecp https://DOMAIN:8443/ecp;
    }
}

proxy_params.conf

proxy_set_header        Host                    $host;
proxy_set_header        X-Real-IP               $remote_addr;
proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
proxy_set_header        X-Forwarded-Proto       $scheme;
add_header              X-Cache-Status          $upstream_cache_status;

proxy_settings.conf

proxy_buffering              off;
proxy_http_version           1.1;
proxy_request_buffering      off;
proxy_set_header Connection  "Keep-Alive";
client_max_body_size         50m;
proxy_read_timeout           600s;

 

 

Creative Commons license icon Creative Commons license icon