ssl.conf 629 B

12345678910111213141516171819202122
  1. # /usr/share/doc/lighttpd/ssl.txt
  2. $SERVER["socket"] == ":80" {
  3. }
  4. $HTTP["scheme"] == "http" {
  5. # capture vhost name with regex conditiona -> %0 in redirect pattern
  6. # must be the most inner block to the redirect rule
  7. $HTTP["host"] =~ ".*" {
  8. url.redirect = (".*" => "https://%0$0")
  9. }
  10. }
  11. $SERVER["socket"] == ":443" {
  12. ssl.engine = "enable"
  13. ssl.pemfile = "/etc/lighttpd/ssl/lighttpd.pem"
  14. ssl.use-sslv2 = "disable"
  15. ssl.use-sslv3 = "disable"
  16. ssl.use-compression = "disable"
  17. ssl.honor-cipher-order = "enable"
  18. ssl.cipher-list = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM"
  19. }