[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/docs/ -> lighttpd.sample.conf (source)

   1  # Sample lighttpd configuration file for phpBB.
   2  # Global settings have been removed, copy them
   3  # from your system's lighttpd.conf.
   4  # Tested with lighttpd 1.4.35
   5  
   6  # If you want to use the X-Sendfile feature,
   7  # uncomment the 'allow-x-send-file' for the fastcgi
   8  # server below and add the following to your config.php
   9  #
  10  #  define('PHPBB_ENABLE_X_SENDFILE', true);
  11  #
  12  # See http://blog.lighttpd.net/articles/2006/07/02/x-sendfile
  13  # for the details on X-Sendfile.
  14  
  15  # Load moules
  16  server.modules += ( 
  17      "mod_access",
  18      "mod_fastcgi",
  19      "mod_rewrite",
  20      "mod_accesslog"
  21  )
  22  
  23  # If you have domains with and without www prefix,
  24  # redirect one to the other.
  25  $HTTP["host"] =~ "^(myforums\.com)$" {
  26      url.redirect = (
  27          ".*"    => "http://www.%1$0"
  28      )
  29  }
  30  
  31  $HTTP["host"] == "www.myforums.com" {
  32      server.name                = "www.myforums.com"
  33      server.document-root    = "/path/to/phpbb"
  34      server.dir-listing        = "disable"
  35      
  36      index-file.names        = ( "index.php", "index.htm", "index.html" )
  37      accesslog.filename        = "/var/log/lighttpd/access-www.myforums.com.log"
  38      
  39      # Deny access to internal phpbb files.    
  40      $HTTP["url"] =~ "^/(config\.php|common\.php|cache|files|images/avatars/upload|includes|phpbb|store|vendor)" {
  41          url.access-deny = ( "" )
  42      }
  43  
  44      # Deny access to version control system directories.
  45      $HTTP["url"] =~ "/\.svn|/\.git" {
  46          url.access-deny = ( "" )
  47      }
  48      
  49      # Deny access to apache configuration files.
  50      $HTTP["url"] =~ "/\.htaccess|/\.htpasswd|/\.htgroups" {
  51          url.access-deny = ( "" )
  52      }
  53      
  54      # The following 3 lines will rewrite URLs passed through the front controller
  55      # to not require app.php in the actual URL. In other words, a controller is
  56      # by default accessed at /app.php/my/controller, but can also be accessed at
  57      # /my/controller
  58      url.rewrite-if-not-file = (
  59         "^/(.*)$" => "/app.php/$1"
  60      )
  61      
  62      fastcgi.server = ( ".php" => 
  63          ((
  64              "bin-path" => "/usr/bin/php-cgi",
  65              "socket" => "/tmp/php.socket",
  66              "max-procs" => 4,
  67              "idle-timeout" => 30,
  68              "bin-environment" => ( 
  69                  "PHP_FCGI_CHILDREN" => "10",
  70                  "PHP_FCGI_MAX_REQUESTS" => "10000"
  71              ),
  72              "bin-copy-environment" => (
  73                  "PATH", "SHELL", "USER"
  74              ),
  75              #"allow-x-send-file" => "enable",
  76              "broken-scriptfilename" => "enable"
  77          ))
  78      )
  79  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1