Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. server.modules = (
  2. "mod_access",
  3. "mod_alias",
  4. "mod_compress",
  5. "mod_redirect",
  6. "mod_rewrite",
  7. "mod_cgi",
  8. "mod_fastcgi",
  9. )
  10. server.document-root = "/var/www/beta.badu.bg"
  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.  
  18.  
  19. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  20. url.access-deny = ( "~", ".inc" )
  21. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  22.  
  23. compress.cache-dir = "/var/cache/lighttpd/compress/"
  24. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  25.  
  26. # default listening port for IPv6 falls back to the IPv4 port
  27. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  28. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  29. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  30.  
  31.  
  32.  
  33. fastcgi.server = ( ".php" =>
  34. ( "localhost" =>
  35. (
  36. "bin-path" => "/usr/bin/php5-cgi",
  37. "socket" => "/tmp/php.socket",
  38. "max-procs" => 10,
  39. "idle-timeout" => 30,
  40. "bin-environment" => (
  41. "PHP_FCGI_CHILDREN" => "2",
  42. "PHP_FCGI_MAX_REQUESTS" => "10000"
  43. ),
  44. "bin-copy-environment" => (
  45. "PATH", "SHELL", "USER"
  46. ),
  47. "broken-scriptfilename" => "enable"
  48. )
  49. )
  50. )
  51.  
  52.  
  53. #### CGI module
  54. #cgi.assign = ( ".pl" => "/usr/bin/perl",
  55. # ".cgi" => "/usr/bin/perl" )
  56.  
  57.  
  58.  
  59. $HTTP["host"] =~ "beta\.badu\.bg" {
  60. cgi.assign = (
  61. ".pl" => "/usr/bin/perl",
  62. ".cgi" => "/usr/bin/perl"
  63. )
  64. url.rewrite = (
  65. "/api/v1/(.*)?(.*)" => "/api/v1/index.php?$2",
  66. )
  67.  
  68. server.document-root = "/var/www/beta.badu.bg"
  69.  
  70. }
  71. $HTTP["host"] =~ "badu\.bg" {
  72. cgi.assign = (
  73. ".pl" => "/usr/bin/perl",
  74. ".cgi" => "/usr/bin/perl"
  75. )
  76. url.rewrite = (
  77. "(.*).html?(.*)" => "seo.php?seo_argument=$1&$2",
  78. )
  79.  
  80. server.document-root = "/var/www/badu.bg/web/"
  81.  
  82. }
  83.  
  84. $SERVER["socket"] == "217.18.247.208:443" {
  85. ssl.engine = "enable"
  86. ssl.pemfile = "/mnt/ssd/certs/new/badu.bg.pem"
  87. $HTTP["host"] =~ "badu\.bg" {
  88. ssl.pemfile = "/mnt/ssd/certs/new/badu.bg.pem"
  89. #ssl.ca-file = "/mnt/ssd/certs/badu.bg/badu.bg.ca-bundle"
  90.  
  91. cgi.assign = (
  92. ".pl" => "/usr/bin/perl",
  93. ".cgi" => "/usr/bin/perl"
  94. )
  95. url.rewrite = (
  96. "(.*).html?(.*)" => "seo.php?seo_argument=$1&$2",
  97. )
  98.  
  99. server.document-root = "/var/www/badu.bg/web/"
  100.  
  101.  
  102. }
  103.  
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement