user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/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 /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; server { listen 443 ssl; server_name 13ua.com; ssl on; ssl_certificate /usr/share/nginx/html/13.crt; ssl_certificate_key /usr/share/nginx/html/13.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root /usr/share/nginx/html; index index.html index.htm; } } server { listen 1888 ssl; server_name 13ua.com; ssl on; ssl_certificate /usr/share/nginx/html/13.crt; ssl_certificate_key /usr/share/nginx/html/13.key; charset UTF-8; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; location / { proxy_http_version 1.1; proxy_pass http://127.0.0.1:1880; proxy_set_header Host $host:$server_port; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } }