Guest User

Untitled

a guest
Jun 15th, 2012
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server.modules = (
  2. "mod_access",
  3. "mod_alias",
  4. "mod_compress",
  5. "mod_redirect",
  6. "mod_fastcgi",
  7. "mod_rewrite",
  8. )
  9.  
  10. dir-listing.activate = "enable"
  11. server.document-root = "/var/www/bacc/public"
  12. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  13. server.errorlog = "/var/log/lighttpd/error.log"
  14. server.pid-file = "/var/run/lighttpd.pid"
  15. server.username = "www-data"
  16. server.groupname = "www-data"
  17.  
  18. index-file.names = ( "index.php", "index.html",
  19. "index.htm", "default.htm",
  20. " index.lighttpd.html" )
  21.  
  22. url.access-deny = ( "~", ".inc" )
  23.  
  24. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  25.  
  26. ## Use ipv6 if available
  27. #include_shell "/usr/share/lighttpd/use-ipv6.pl"
  28.  
  29. dir-listing.encoding = "utf-8"
  30. server.dir-listing = "enable"
  31.  
  32. compress.cache-dir = "/var/cache/lighttpd/compress/"
  33. compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
  34.  
  35. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  36. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  37.  
  38. fastcgi.server = (".php" => ((
  39. "bin-path" => "/usr/bin/php5-cgi",
  40. "socket" => "/tmp/php.socket"
  41. )))
  42. $HTTP["host"] != "db.baccsrv1.schoolxp" {
  43.  
  44. #$HTTP["url"] !~ "^/api*" {
  45. url.rewrite-once = (
  46. ".*\?(.*)$" => "/index.php?$1",
  47. ".*\.(js|ico|gif|jpg|png|css)$" => "$0",
  48. "" => "/index.php"
  49. )
  50. #}
  51. }
  52.  
  53. $HTTP["host"] =~ "db.baccsrv1.schoolxp" {
  54. server.document-root = "/var/www/management"
  55. }
RAW Paste Data