Guest User

Untitled

a guest
Apr 26th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. server.modules = ( "mod_access", "mod_accesslog", "mod_fastcgi", "mod_rewrite", "mod_scgi", "mod_simple_vhost" )
  2. server.document-root = "/usr/local/www"
  3. server.errorlog = "/var/log/lighttpd_error.log"
  4. server.event-handler = "freebsd-kqueue"
  5.  
  6. index-file.names = ( "index.php", "index.html" )
  7.  
  8. mimetype.assign = (
  9. ".pdf" => "application/pdf",
  10. ".sig" => "application/pgp-signature",
  11. ".spl" => "application/futuresplash",
  12. ".class" => "application/octet-stream",
  13. ".ps" => "application/postscript",
  14. ".torrent" => "application/x-bittorrent",
  15. ".dvi" => "application/x-dvi",
  16. ".gz" => "application/x-gzip",
  17. ".pac" => "application/x-ns-proxy-autoconfig",
  18. ".swf" => "application/x-shockwave-flash",
  19. ".tar.gz" => "application/x-tgz",
  20. ".tgz" => "application/x-tgz",
  21. ".tar" => "application/x-tar",
  22. ".zip" => "application/zip",
  23. ".mp3" => "audio/mpeg",
  24. ".m3u" => "audio/x-mpegurl",
  25. ".wma" => "audio/x-ms-wma",
  26. ".wax" => "audio/x-ms-wax",
  27. ".ogg" => "application/ogg",
  28. ".wav" => "audio/x-wav",
  29. ".gif" => "image/gif",
  30. ".jpg" => "image/jpeg",
  31. ".jpeg" => "image/jpeg",
  32. ".png" => "image/png",
  33. ".xbm" => "image/x-xbitmap",
  34. ".xpm" => "image/x-xpixmap",
  35. ".xwd" => "image/x-xwindowdump",
  36. ".css" => "text/css",
  37. ".html" => "text/html",
  38. ".htm" => "text/html",
  39. ".js" => "text/javascript",
  40. ".asc" => "text/plain",
  41. ".c" => "text/plain",
  42. ".cpp" => "text/plain",
  43. ".log" => "text/plain",
  44. ".conf" => "text/plain",
  45. ".text" => "text/plain",
  46. ".txt" => "text/plain",
  47. ".dtd" => "text/xml",
  48. ".xml" => "text/xml",
  49. ".mpeg" => "video/mpeg",
  50. ".mpg" => "video/mpeg",
  51. ".mov" => "video/quicktime",
  52. ".qt" => "video/quicktime",
  53. ".avi" => "video/x-msvideo",
  54. ".asf" => "video/x-ms-asf",
  55. ".asx" => "video/x-ms-asf",
  56. ".wmv" => "video/x-ms-wmv",
  57. ".bz2" => "application/x-bzip",
  58. ".tbz" => "application/x-bzip-compressed-tar",
  59. ".tar.bz2" => "application/x-bzip-compressed-tar"
  60. )
  61.  
  62. accesslog.filename = "/var/log/lighttpd_access.log"
  63.  
  64. url.access-deny = ( "~", ".inc" )
  65.  
  66. static-file.exclude-extensions = ( ".fcgi", ".php" )
  67.  
  68. debug.log-request-handling = "enable"
  69.  
  70. $HTTP["host"] =~ "(^|\.)seven88\.com$" {
  71. server.document-root = "/services/httpd/seven88.com"
  72. # url.rewrite-once = (
  73. # "^/(.*)\.(.*)" => "$0",
  74. # "^/([^\.]+)$" => "/index.php/$1",
  75. # "^/$" => "/index.php"
  76. # )
  77. # url.rewrite-once = ( "^(.*)$" => "index.php?q=$1" )
  78. #
  79. # echo "cgi.fix_pathinfo = 1" >> php.ini
  80. #
  81. fastcgi.server = ( ".php" => ( "localhost" => (
  82. "socket" => "/services/httpd/seven88.com/seven88.socket",
  83. "bin-path" => "/usr/local/bin/php-cgi"
  84. )))
  85. }
Add Comment
Please, Sign In to add comment