# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/

user              nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log warn; 
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


#
# Server config for forwarding secured POP3/IMAP connections to the Zarafa Gateway
#

mail {
	auth_http 	127.0.0.1:12345/cgi-bin/auth.cgi;
	
	ssl_certificate /etc/pki/tls/certs/mycert.pem;
	ssl_certificate_key /etc/pki/tls/private/myprivkey.pem;
	
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	ssl_ciphers EECDH+AESGCM:EDH+AESGCM:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4;
	
	ssl_dhparam /etc/pki/tls/certs/dhparam.pem;	
	
	ssl_prefer_server_ciphers on;
	ssl_session_timeout 5m;
	ssl_session_cache shared:nginx_cache_mail:16m;
	
	server {
		listen 110; #POP3 STARTTLS

		starttls only;		
	}

	server {
		listen 143; #IMAP STARTTLS
	
		starttls only;	
	}

	server {
		listen 993; #IMAP SSL
		
		ssl on;		
	}
		
	server {
		listen 995; #POP3 SSL
		
		ssl on;				
	}

}

http {
	
	ssl_certificate /etc/pki/tls/certs/mycert.pem
	ssl_certificate_key /etc/pki/tls/private/myprivkey.pem;
	
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	ssl_ciphers EECDH+AESGCM:EDH+AESGCM:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4;
	
	ssl_dhparam /etc/pki/tls/certs/dhparam.pem;
	
	ssl_prefer_server_ciphers on;
	ssl_session_timeout 5m;
	
	ssl_session_cache shared:nginx_cache:16m;
	server {
		
		ssl on;
		listen 443;
		add_header Strict-Transport-Security max-age=15768000;
		
		location / {
			root /var/www/html;
		}
	}

}
------WebKitFormBoundaryVseDAl7oqJDLORxg
Content-Disposition: form-data; name="description"

Config for the bug