Advertisement
Guest User

Untitled

a guest
Dec 8th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. server.modules = (
  2. "mod_access",
  3. "mod_alias",
  4. "mod_compress",
  5. "mod_redirect",
  6. "mod_rewrite",
  7. "mod_setenv",
  8. )
  9.  
  10. server.document-root = "/var/www/html/owncloud"
  11. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  12. server.errorlog = "/var/log/lighttpd/error.log"
  13. server.pid-file = "/var/run/lighttpd.pid"
  14. server.username = "www-data"
  15. server.groupname = "www-data"
  16. server.port = 80
  17. ssl_engine = "enabled"
  18. server.bind = "192.168.1.9"
  19.  
  20. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  21. url.access-deny = ( "~", ".inc" )
  22. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  23.  
  24. compress.cache-dir = "/var/cache/lighttpd/compress/"
  25. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  26.  
  27. # default listening port for IPv6 falls back to the IPv4 port
  28. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  29. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  30. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  31.  
  32.  
  33.  
  34.  
  35. $SERVER["socket"] == ":443" {
  36. ssl.engine = "enable"
  37. ssl.pemfile = "/etc/letsencrypt/live/vorman.mooo.com/combined.pem"
  38. ssl.ca-file = "/etc/letsencrypt/live/vorman.mooo.com/fullchain.pem"
  39. ssl.cipher-list = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:HIGH:!MD5:!aNULL:!EDH:!AESGCM"
  40. ssl.honor-cipher-order = "enable"
  41. ssl.use-sslv2 = "disable"
  42. ssl.use-sslv3 = "disable"
  43. }
  44.  
  45.  
  46.  
  47.  
  48.  
  49. #$SERVER["socket"] == "vorman.mooo.com:443" {
  50. # ssl.engine = "enable"
  51. # ssl.pemfile = "/etc/lighttpd/ssl/vorman.mooo.com.pem"
  52. # ssl.ca-file = "/etc/lighttpd/ssl/vorman.mooo.com.crt"
  53. # server.name = "vorman.mooo.com"
  54. # server.document-root = "/var/wwww/html/owncloud"
  55.  
  56. #}
  57.  
  58. #$SERVER["socket"] == ":443" {
  59. # ssl.engine = "enable"
  60. # ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
  61. #}
  62.  
  63.  
  64.  
  65. $HTTP["scheme"] == "https" {
  66. setenv.add-response-header = ( "Strict-Transport-Security" => "max-age=63072000; includeSubdomains; ")
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement