• Support
  • nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

jazz1611
Hello, the quick installation is that the already compiled installation package is not supported now, you can do as above if you need it.

    15 days later

    One of the sites is accessible by the IP address of the server using the https protocol, how can I fix it?
    The site is now available at the https://epyc.tech/ domain and at the ip address.
    Access by IP address http protocol managed to be fixed by adding the ip address of the server to the domains.
    The default domain also set the server IP, did not help.

      filmovtv
      hello, are you trying to disable ip access? If yes, please modify the following files as:
      /www/server/panel/vhost/nginx/0.default.conf

      server {
      listen 80 default_server;
      listen [::]:80 default_server;

      listen 443 default_server;
      listen [::]:443 default_server;
      ssl_reject_handshake on;

      server_name _;
      return 444;
      }

      This is what you need, the site is no longer available by ip, thank you very much. 😀

      Please tell me how to redirect from all https pallets to the main domain while preserving the entire URL.
      Adding all possible subdomain options to the panel is not an option, and other attempts result in an SSL certificate error.

        filmovtv
        If the subdomain is added in Domain Manager, can you re-apply for SSL and check Select All?

        I have to enter any subdomains (1.site.com, 2.site.com, 3.site.com, 4.site.com, a.site.com, b.site.com, c.site.com, d. site.com, 1a.site.com, 2a.site.com, 2b.site.com, 3a.site.com, 999999qwerer.site.com, sdfa23452dqqa.site.
        com and so on) it is not possible to add them to the panel and get ssl, I want to direct everything to the main domain while maintaining the full page address

          filmovtv
          Add *.site.com which is a wildcard, this will match any subdomain above
          Then re-apply for SSL, select DNS verification as the verification method when applying, and then add record domain resolution record according to its prompt content

          Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com