сервер nginx
ISP Config 3
директивы nginx:
Код: Выделить всё
location /install/app.php {
try_files $uri $uri/ /install/app.php?$query_string;
}
У кого было что-то подобное? И где что посмотреть?
Код: Выделить всё
location /install/app.php {
try_files $uri $uri/ /install/app.php?$query_string;
}
Это не всё. Рабочий пример конфига для nginx в папке docs есть.
Это форум, а не соцсети.
Очевидно не все.
Начните с просмотра примера конфига.
Не помогло, так как phpBB уже установлен я не вносил директивы отвечающие за установку.
Код: Выделить всё
server {
listen *:80;
server_name forum.tesla-chita.ru ;
root /var/www/forum.tesla-chita.ru/web/;
index index.html index.htm index.php index.cgi index.pl index.xhtml;
location ~ \.shtml$ {
ssi on;
}
error_page 400 /error/400.html;
error_page 401 /error/401.html;
error_page 403 /error/403.html;
error_page 404 /error/404.html;
error_page 405 /error/405.html;
error_page 500 /error/500.html;
error_page 502 /error/502.html;
error_page 503 /error/503.html;
recursive_error_pages on;
location = /error/400.html {
internal;
}
location = /error/401.html {
internal;
}
location = /error/403.html {
internal;
}
location = /error/404.html {
internal;
}
location = /error/405.html {
internal;
}
location = /error/500.html {
internal;
}
location = /error/502.html {
internal;
}
location = /error/503.html {
internal;
}
error_log /var/log/ispconfig/httpd/forum.tesla-chita.ru/error.log;
access_log /var/log/ispconfig/httpd/forum.tesla-chita.ru/access.log combined;
location ~ /\. {
deny all;
}
location ^~ /.well-known/acme-challenge/ {
access_log off;
log_not_found off;
root /usr/local/ispconfig/interface/acme/;
autoindex off;
index index.html;
try_files $uri $uri/ =404;
}
location = /favicon.ico {
log_not_found off;
access_log off;
expires max;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /stats/ {
index index.html index.php;
auth_basic "Members Only";
auth_basic_user_file /var/www/clients/client2/web27/web//stats/.htpasswd_stats;
}
location ^~ /awstats-icon {
alias /usr/share/awstats/icon;
}
location ~ \.php$ {
try_files /******************************************.htm @php;
}
location @php {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php7.0-fpm/web27.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
}
location /cgi-bin/ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
root /var/www/clients/client2/web27;
gzip off;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.cgi;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
}
#Данные которые я добавил в настройки, а выше это стандартные nginx
location / {
index index.php index.html index.htm;
try_files $uri $uri/ @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb|store|vendor) {
deny all;
internal;
}
location ~ \.php(/|$) {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /app.php$is_args$args;
fastcgi_pass unix:/var/lib/php7.0-fpm/web27.sock;
}
}
Код: Выделить всё
***.***.***.*** - - [12/Dec/2018:00:36:58 +0900] "GET /ucp.php?mode=activate&u=49&k=OWSYHK HTTP/1.1" 404 868 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
ucp.php
вообще на месте?)Профили работают, регистрация проходит, письмо с активацией улетает, файл на месте Отправлено спустя 16 минут 24 секунды:
Код: Выделить всё
http://forum.tesla-chita.ru/ucp.php?mode=activate&u=49&k=OWSYHK
Код: Выделить всё
http://forum.tesla-chita.ru/adm/index.php?i=users&mode=overview&redirect=acp_inactive&sid=<скрыт>&u=50
Код: Выделить всё
http://forum.tesla-chita.ru/ucp.php?mode=activate&u=50&k=OWSYHK