RPC over HTTPS
meszi
nginx-forum at nginx.us
Wed Oct 14 19:34:49 MSD 2009
Hi,
I am currently trying to set up Nginx 0.6.35 (on Ubuntu 9.04) to listen to OWA of some Exchange 2003 server. My config is as follows:
-----------------------------------------------------------------------------------------------------------
# nginx.conf
user www-data;
worker_processes 2;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
#default_type application/octet-stream;
default_type text/plain;
access_log /var/log/nginx/access.log;
#sendfile on;
tcp_nopush off;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
#msie_padding on;
#msie_refresh off;
#server_name_in_redirect off;
#server_names_hash_max_size 512;
#server_names_hash_bucket_size 64;
gzip off;
#gzip_http_version 1.1;
#gzip_vary on;
#gzip_comp_level 6;
#gzip_proxied any;
#gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
#gzip_buffers 16 8k;
#gzip_disable "MSIE [1-6].(?!.*SV1)";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
-----------------------------------------------------------------------------------------------------------
#https-proxy config file
server {
listen 443;
server_name 192.168.10.157;
# rewrite ^/$ https://192.168.10.157/exchange permanent;
ssl on;
ssl_certificate /etc/ssl/certs/myssl.crt;
ssl_certificate_key /etc/ssl/private/myssl.key;
ssl_session_timeout 5m;
proxy_read_timeout 360;
proxy_connect_timeout 360;
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_redirect off;
# proxy_buffering off;
# proxy_max_temp_file_size 0;
location /exchange { proxy_pass https://sbs/exchange; }
location /exchweb { proxy_pass https://sb/exchweb; }
location /public { proxy_pass https://sbs/public; }
# location /Microsoft-Server-ActiveSync { proxy_pass https://sbs/Microsoft-Server-ActiveSync; }
}
-----------------------------------------------------------------------------------------------------------
However I cannot log on to OWA. Firefox 3.5.3 complains about some codepage error, MSIE 8 gives a gateway error message, Opera 10 delivers cryptic characters, Safari/Win32 says it could not decode the raw data.
@cates: Can you please review my config and suggest what I am doing wrong?
CU,
Mészi.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3511,13653#msg-13653
More information about the nginx
mailing list