Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

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

nginx.sample.conf

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


01  # Sample nginx configuration file for phpBB.
02  # Global settings have been removed, copy them
03  # from your system's nginx.conf.
04  # Tested with nginx 0.8.35.
05   
06  # If you want to use the X-Accel-Redirect feature,
07  # add the following to your config.php.
08  #
09  #  define('PHPBB_ENABLE_X_ACCEL_REDIRECT', true);
10  #
11  # See http://wiki.nginx.org/XSendfile for the details
12  # on X-Accel-Redirect.
13   
14  http {
15      # Compression - requires gzip and gzip static modules.
16      gzip on;
17      gzip_static on;
18      gzip_vary on;
19      gzip_http_version 1.1;
20      gzip_min_length 700;
21      
22      # Compression levels over 6 do not give an appreciable improvement
23      # in compression ratio, but take more resources.
24      gzip_comp_level 6;
25      
26      # IE 6 and lower do not support gzip with Vary correctly.
27      gzip_disable "msie6";
28      # Before nginx 0.7.63:
29      #gzip_disable "MSIE [1-6]\.";
30   
31      # Catch-all server for requests to invalid hosts.
32      # Also catches vulnerability scanners probing IP addresses.
33      server {
34          # default specifies that this block is to be used when
35          # no other block matches.
36          listen 80 default;
37   
38          server_name bogus;
39          return 444;
40          root /var/empty;
41      }
42   
43      # If you have domains with and without www prefix,
44      # redirect one to the other.
45      server {
46          # Default port is 80.
47          #listen 80;
48   
49          server_name myforums.com;
50   
51          # A trick from http://wiki.nginx.org/Pitfalls#Taxing_Rewrites:
52          rewrite ^ http://www.myforums.com$request_uri permanent;
53          # Equivalent to:
54          #rewrite ^(.*)$ http://www.myforums.com$1 permanent;
55      }
56   
57      # The actual board domain.
58      server {
59          #listen 80;
60          server_name www.myforums.com;
61   
62          root /path/to/phpbb;
63   
64          location / {
65              # phpbb uses index.htm
66              index index.php index.html index.htm;
67          }
68   
69          # Deny access to internal phpbb files.
70          location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
71              deny all;
72              # deny was ignored before 0.8.40 for connections over IPv6.
73              # Use internal directive to prohibit access on older versions.
74              internal;
75          }
76   
77          # Pass the php scripts to fastcgi server specified in upstream declaration.
78          location ~ \.php$ {
79              fastcgi_pass php;
80              # Necessary for php.
81              fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
82              # Unmodified fastcgi_params from nginx distribution.
83              include fastcgi_params;
84          }
85   
86          # Deny access to version control system directories.
87          location ~ /\.svn|/\.git {
88              deny all;
89              internal;
90          }
91      }
92   
93      # If running php as fastcgi, specify php upstream.
94      upstream php {
95          server unix:/tmp/php.sock;
96      }
97  }
98