server {
listen 80;
listen [::]:80;
server_name 192.168.1.13;
root /var/www/html/test2/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
2022/11/10 18:19:04 [error] 58129#58129: *225513 connect() failed (113: No route to host) while connecting to upstream, client: мой ip, server: ССЫЛКА НА ПОДДОМЕН, request: "GET / HTTP/1.1", upstream: "https://192.168.1.169:8007/( это адрес поддомена)", host: "домен на который я ссылаюсь"
2022/11/10 15:11:27 [error] 710#710: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.17, server: 192.168.1.13, request: "GET /wp-login.php HTTP/1.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "мой-домен", referrer: ""
2022/11/10 15:17:08 [error] 710#710: *3 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.17, server: 192.168.1.13, request: "GET /wp-login.php HTTP/1.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "мой-домен", referrer: ""
2022/11/10 15:44:50 [error] 710#710: *5 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.17, server: 192.168.1.13, request: "GET /wp-login.php HTTP/1.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "мой-домен"
2022/11/10 15:49:32 [error] 710#710: *7 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.17, server: 192.168.1.13, request: "GET /wp-login.php HTTP/1.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "мой-домен", referrer: ""
а нахрена вы запихали в /home/nvadmin?
на nginx который reverse_proxy я ловлю доменное имя
server_name мой_домен.com www.мой_домен.com;
а затем на ubuntu тоже самое?
server_name мой_домен.com www.мой_домен.com;
я только что попробовал заменить server_name второй_домен(который работает).ru на первый который пытаюсь целый день привязать, снова 502 но тот домен который работал, продолжает работать о_О
nginx я ребутнул