Назад | Перейти на главную страницу

Время ожидания подключения к Cloudflare 522 истекло

Я не уверен, что происходит, но все это произошло, когда я сменил одного провайдера VPS на другого.

У меня есть несколько веб-сайтов, все из которых подключены через Cloudflare, все указывают на один и тот же VPS и установку Apache2.

у меня есть https://level42.ca, и https://lumpysoft.com

level42.ca отлично работает как по http, так и по https, а lumpysoft.com предоставляет мне 522, когда я пытаюсь подключиться. Я сравнил файлы sites-enabled.conf обоих сайтов, и с точки зрения конфигурации они практически идентичны.

Однако странно то, что если я захожу на lumpysoft.com через поддомен (также указывающий на тот же IP-адрес), он работает и пропускает меня.

Многое из прочитанного мной предполагает либо проблему с брандмауэром (в которой я сомневаюсь, поскольку level42.ca работает), либо ошибку конфигурации сервера, которую, если да, я не могу найти.

Ниже приведены два моих файла .conf, возможно, кто-то может увидеть что-то, чего не вижу я ...

level42.ca

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin level42@domain.ca
        ServerName level42.ca
        ServerAlias www.level42.ca
        DocumentRoot /var/www/html/level42.ca/public_html

        <Directory /var/www/html/level42.ca/public_html>
#               Options Indexes FollowSymLinks
                AllowOverride All
#               Require all granted
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

#       LogLevel alert rewrite:trace3
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

lumpysoft.com

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin level42@domain.ca
        ServerName lumpysoft.com
        # ServerAlias cannot be the same as ServerName
        ServerAlias www.lumpysoft.com
        DocumentRoot /var/www/html/lumpysoft.com/public_html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

ИЗМЕНИТЬ, вот моя конфигурация брандмауэра на моем сервере Ubuntu:

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere
80/tcp                     ALLOW IN    Anywhere
25/tcp (Postfix)           ALLOW IN    Anywhere
Anywhere                   DENY IN     115.249.75.237
22/tcp (v6)                ALLOW IN    Anywhere (v6)
80/tcp (v6)                ALLOW IN    Anywhere (v6)
25/tcp (Postfix (v6))      ALLOW IN    Anywhere (v6)

DNS:

lumpysoft.com: https://imgur.com/xkOUP0i

level42.ca: https://imgur.com/Td143q2