Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

lighttpd.sample.conf

Zuletzt modifiziert: 09.10.2024, 12:51 - Dateigröße: 2.12 KiB


01  # Sample lighttpd configuration file for phpBB.
02  # Global settings have been removed, copy them
03  # from your system's lighttpd.conf.
04  # Tested with lighttpd 1.4.35
05   
06  # If you want to use the X-Sendfile feature,
07  # uncomment the 'allow-x-send-file' for the fastcgi
08  # server below and add the following to your config.php
09  #
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|includes|cache|files|store|images/avatars/upload)" {
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  }
80