nginx, при подключении по https ошибка 404

При подключении по https выводит 404 с лого google, при http нормально переадресовывает на https и опять 404, Почему то при выполнении

echo | openssl s_client -connect timestar.site:443 2>/dev/null | openssl x509 -noout -text

выводится Subject: CN = *.google-analytics.com, как будто сайт на гугл аналитику ведёт, а при выполнении

dig timestar.site +short

выводит 91.103.253.6 (верный ip сервера). Также ещё команды:

curl -I https://timestar.site
curl: (60) SSL: no alternative certificate subject name matches target host name 'timestar.site'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

/etc/nginx/sites-enabled/payment-site:

server {
    listen 443 ssl default_server;
    server_name timestar.site www.timestar.site;

    ssl_certificate /etc/letsencrypt/live/timestar.site/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/timestar.site/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    error_log stderr;
    access_log /var/log/nginx/payment-site-access.log;
}

server {
    listen 80 default_server;
    server_name timestar.site www.timestar.site;
    return 301 https://$host$request_uri;

помогите пожалуйста разобраться, напишите если надо ещё что нибудь скинуть


Ответы (1 шт):

Автор решения: Точка Точкевна

разобрался в чём проблема, на 443 порту стоял Xray протокол от AmneziaVPN и он как раз настроен был маскироваться под гугл аналитику, поэтому и появлялась страница с 404 от гугла тк он перехватывал запрос к сайту. После удаления Xray сразу заработало.

→ Ссылка