Где и куда рыть?
Форум 3.3.0
nginx/1.18.0
Код: Выделить всё
## Your website name goes here.
server_name forum.overminers.ru;
## This should be in your http block and if it is, it's not needed here.
index index.php index.html index.htm;
# phpBB
location / {
autoindex off;
try_files $uri $uri/ @rewriteapp;
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb|store|vendor) {
deny all;
}
location ~ \.php(/|$) {
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param HTTP_PROXY '';
try_files $uri $uri/ /app.php$is_args$args $document_root$fastcgi_script_name =404;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
location /install/ {
try_files $uri $uri/ @rewrite_installapp;
location ~ \.php(/|$) {
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param HTTP_PROXY '';
try_files $uri $uri/ /install/app.php$is_args$args $document_root$fastcgi_script_name =404;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}
location @rewrite_installapp {
rewrite ^(.*)$ /install/app.php/$1 last;
}
}