Skip to content

Instantly share code, notes, and snippets.

@smallvil
Created July 6, 2013 15:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save smallvil/5940229 to your computer and use it in GitHub Desktop.
Save smallvil/5940229 to your computer and use it in GitHub Desktop.
startssl for nginx configuration file
# HTTPS server
#
# 2013-07-07 secure.get9.net
# cat get9.net.crt sub.class1.server.ca.pem ca.pem > get9.net-nginx.crt
server {
listen 443;
server_name secure.get9.net;
ssl on;
ssl_certificate /etc/nginx/ssl/get9.net-nginx.crt;
ssl_certificate_key /etc/nginx/ssl/get9.net-nopasswd.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root /home/html/secure;
index index.html index.php;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment