Posted By

jordanbrock on 06/25/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ocean


Example lighttpd conf file


 / Published in: Bash
 

  1. ### Lighttpd Configuration File
  2.  
  3. #-- Lighttpd modules
  4. server.modules = ( "mod_rewrite",
  5. "mod_redirect",
  6. "mod_access",
  7. "mod_auth",
  8. "mod_proxy",
  9. "mod_cgi",
  10. "mod_fastcgi",
  11. "mod_compress",
  12. "mod_accesslog" )
  13.  
  14. #-- CGI configuration
  15. cgi.assign = ( ".pl" => "/usr/local/bin/perl",
  16. ".cgi" => "/usr/local/bin/perl" )
  17.  
  18. #-- Mimetypes
  19. include_shell "cat /usr/local/etc/lighttpd_mimetypes.conf"
  20.  
  21. #-- Default domain
  22. #
  23. # Replace USERNAME with your TextDrive user name, PORTNUMBER with
  24. # your assigned port number (you'll need only one).
  25.  
  26. server.username = "jordanbrock"
  27. server.port = 8637
  28. server.groupname = server.username
  29. var.base = "/users/home/" + server.username
  30. server.document-root = base + "/sites/"
  31. server.pid-file = base + "/var/run/lighttpd.pid"
  32. server.tag = "Lighttpd | TextDriven"
  33. server.indexfiles = ( "index.php", "index.html",
  34. "index.htm", "default.htm" )
  35. url.access-deny = ( "~", ".inc", ".ht" )
  36.  
  37. #-- Logging
  38. accesslog.filename = base + "/var/log/lighttpd.access.log"
  39. server.errorlog = base + "/var/log/lighttpd.error.log"
  40.  
  41. #-- VHOSTS
  42. #
  43. $HTTP["host"] =~ "(www\.)?spintech\.com\.au)" {
  44. server.document-root = base + "/sites/spintech/current/public/"
  45. server.error-handler-404 = "/dispatch.fcgi"
  46. fastcgi.server = ( ".fcgi" =>
  47. ( "localhost" =>
  48. ( "socket" => base + "/var/run/spintech-0.socket" )
  49. )
  50. )
  51. }
  52.  
  53. $HTTP["host"] =~ "intranet\.spintech\.com\.au" {
  54. server.document-root = base + "/sites/intranet/current/public/"
  55. server.error-handler-404 = "/dispatch.fcgi"
  56. fastcgi.server = ( ".fcgi" =>
  57. ( "localhost" =>
  58. ( "socket" => base + "/var/run/intranet-0.socket" )
  59. )
  60. )
  61. }

Report this snippet  

You need to login to post a comment.