2013-09-01 12:19:41 -04:00
|
|
|
server {
|
|
|
|
listen 443;
|
|
|
|
# server_name mail.mailiverse.com;
|
|
|
|
|
|
|
|
ssl on;
|
2013-09-01 18:17:08 -04:00
|
|
|
ssl_certificate nginx-ssl.crt;
|
|
|
|
ssl_certificate_key nginx-ssl.key;
|
2013-09-01 12:19:41 -04:00
|
|
|
|
|
|
|
ssl_session_timeout 5m;
|
|
|
|
|
|
|
|
ssl_protocols SSLv2 SSLv3 TLSv1;
|
|
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
2013-09-02 13:20:30 -04:00
|
|
|
location /Mailiverse/ {
|
|
|
|
proxy_pass http://127.0.0.1:8080; # my existing apache instance
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection upgrade;
|
|
|
|
}
|
|
|
|
|
2013-09-01 12:19:41 -04:00
|
|
|
location / {
|
|
|
|
autoindex off;
|
2013-09-01 18:17:08 -04:00
|
|
|
root /var/local/www/;
|
2013-09-01 12:19:41 -04:00
|
|
|
}
|
|
|
|
}
|
2013-09-01 18:17:08 -04:00
|
|
|
|