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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
nginx.sample.conf
001 # Sample nginx configuration file for phpBB.
002 # Global settings have been removed, copy them
003 # from your system's nginx.conf.
004 # Tested with nginx 0.8.35.
005
006 # If you want to use the X-Accel-Redirect feature,
007 # add the following to your config.php.
008 #
009 # define('PHPBB_ENABLE_X_ACCEL_REDIRECT', true);
010 #
011 # See http://wiki.nginx.org/XSendfile for the details
012 # on X-Accel-Redirect.
013
014 http {
015 # Compression - requires gzip and gzip static modules.
016 gzip on;
017 gzip_static on;
018 gzip_vary on;
019 gzip_http_version 1.1;
020 gzip_min_length 700;
021
022 # Compression levels over 6 do not give an appreciable improvement
023 # in compression ratio, but take more resources.
024 gzip_comp_level 6;
025
026 # IE 6 and lower do not support gzip with Vary correctly.
027 gzip_disable "msie6";
028 # Before nginx 0.7.63:
029 #gzip_disable "MSIE [1-6]\.";
030
031 # Catch-all server for requests to invalid hosts.
032 # Also catches vulnerability scanners probing IP addresses.
033 server {
034 # default specifies that this block is to be used when
035 # no other block matches.
036 listen 80 default;
037
038 server_name bogus;
039 return 444;
040 root /var/empty;
041 }
042
043 # If you have domains with and without www prefix,
044 # redirect one to the other.
045 server {
046 # Default port is 80.
047 #listen 80;
048
049 server_name myforums.com;
050
051 # A trick from http://wiki.nginx.org/Pitfalls#Taxing_Rewrites:
052 rewrite ^ http://www.myforums.com$request_uri permanent;
053 # Equivalent to:
054 #rewrite ^(.*)$ http://www.myforums.com$1 permanent;
055 }
056
057 # The actual board domain.
058 server {
059 #listen 80;
060 server_name www.myforums.com;
061
062 root /path/to/phpbb;
063
064 location / {
065 # phpBB uses index.htm
066 index index.php index.html index.htm;
067 try_files $uri $uri/ @rewriteapp;
068 }
069
070 location @rewriteapp {
071 rewrite ^(.*)$ /app.php/$1 last;
072 }
073
074 # Deny access to internal phpbb files.
075 location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
076 deny all;
077 # deny was ignored before 0.8.40 for connections over IPv6.
078 # Use internal directive to prohibit access on older versions.
079 internal;
080 }
081
082 # Pass the php scripts to fastcgi server specified in upstream declaration.
083 location ~ \.php(/|$) {
084 # Unmodified fastcgi_params from nginx distribution.
085 include fastcgi_params;
086 # Necessary for php.
087 fastcgi_split_path_info ^(.+\.php)(/.*)$;
088 fastcgi_param PATH_INFO $fastcgi_path_info;
089 fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
090 fastcgi_param DOCUMENT_ROOT $realpath_root;
091 try_files $uri $uri/ /app.php$is_args$args;
092 fastcgi_pass php;
093 }
094
095 # Correctly pass scripts for installer
096 location /install/ {
097 # phpBB uses index.htm
098 try_files $uri $uri/ @rewrite_installapp;
099
100 # Pass the php scripts to fastcgi server specified in upstream declaration.
101 location ~ \.php(/|$) {
102 # Unmodified fastcgi_params from nginx distribution.
103 include fastcgi_params;
104 # Necessary for php.
105 fastcgi_split_path_info ^(.+\.php)(/.*)$;
106 fastcgi_param PATH_INFO $fastcgi_path_info;
107 fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
108 fastcgi_param DOCUMENT_ROOT $realpath_root;
109 try_files $uri $uri/ /install/app.php$is_args$args;
110 fastcgi_pass php;
111 }
112 }
113
114 location @rewrite_installapp {
115 rewrite ^(.*)$ /install/app.php/$1 last;
116 }
117
118 # Deny access to version control system directories.
119 location ~ /\.svn|/\.git {
120 deny all;
121 internal;
122 }
123 }
124
125 # If running php as fastcgi, specify php upstream.
126 upstream php {
127 server unix:/tmp/php.sock;
128 }
129 }
130