[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
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.36 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|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 "^/install/(.*)$" => "/install/app.php/$1", 60 "^/(.*)$" => "/app.php/$1" 61 ) 62 63 fastcgi.server = ( ".php" => 64 (( 65 "bin-path" => "/usr/bin/php-cgi", 66 "socket" => "/tmp/php.socket", 67 "max-procs" => 4, 68 "idle-timeout" => 30, 69 "bin-environment" => ( 70 "PHP_FCGI_CHILDREN" => "10", 71 "PHP_FCGI_MAX_REQUESTS" => "10000" 72 ), 73 "bin-copy-environment" => ( 74 "PATH", "SHELL", "USER" 75 ), 76 #"allow-x-send-file" => "enable", 77 "broken-scriptfilename" => "enable" 78 )) 79 ) 80 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |