server { listen 443; server_name hermes; ssl on; ssl_certificate /etc/ssl/certs/sogo.xxxxx.de.crt; ssl_certificate_key /etc/ssl/private/sogo.xxxxx.de.key; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; ssl_prefer_server_ciphers on; #location / { #root html; #index index.html index.htm; #} location ^~ /SOGo/ { rewrite ^(/SOGo)/$ $1; proxy_pass http://127.0.0.1:20000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_set_header x-webobjects-remote-host 127.0.0.1; proxy_set_header x-webobjects-server-protocol HTTP/1.0; proxy_set_header x-webobjects-server-name $server_name; proxy_set_header x-webobjects-server-port $server_port; proxy_set_header x-webobjects-server-url $scheme://$host; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 4k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; client_max_body_size 50m; client_body_buffer_size 128k; break; } location /SOGo.woa/WebServerResources/ { alias /usr/lib/GNUstep/SOGo/WebServerResources/; } location /SOGo/WebServerResources/ { alias /usr/lib/GNUstep/SOGo/WebServerResources/; } location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ { alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2; } location /phpldapadmin/ { proxy_pass http://127.0.0.1:8090; } location /funambol/ { proxy_pass http://127.0.0.1:8080; } }