Urgently help - test page on the main domain!

Discussion in 'Installation/Configuration' started by cyrillr, Jul 26, 2022.

  1. cyrillr

    cyrillr New Member

    Hey guys! Urgently need your help with the wildcard certificate. I have purchased Alpha SSL Wildcard certificate, put the certificate and key via ISPConfig Panel. Sub-domains are working on it, the main domain is not working and showing Apache Test Page using local server's cert. I've broken my brains what else. I've also turned SSL setting off, bit the main domain is still showing Apache test page using local server's cert.

    [root@ovz6 ~]# apachectl -S
    [Tue Jul 26 10:59:43.213937 2022] [alias:warn] [pid 271566] AH00671: The ScriptAlias directive in /etc/httpd/conf.d/mailman.conf at line 6 will probably never match because it overlaps an earlier ScriptAlias.

    AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:359

    VirtualHost configuration:

    *:8081 ecojute.ru (/etc/httpd/conf/sites-enabled/000-apps.vhost:9)

    *:8080 ecojute.ru (/etc/httpd/conf/sites-enabled/000-ispconfig.vhost:9)

    *:443 is a NameVirtualHost

    default server ecojute.ru (/etc/httpd/conf.d/ssl.conf:40)

    port 443 namevhost ecojute.ru (/etc/httpd/conf.d/ssl.conf:40)

    port 443 namevhost ecojute.ru (/etc/httpd/conf/sites-enabled/900-ecojute.ru.vhost:107)

    wild alias *.ecojute.ru

    *:80 is a NameVirtualHost

    default server ecojute.ru (/etc/httpd/conf/sites-enabled/900-ecojute.ru.vhost:7)

    port 80 namevhost ecojute.ru (/etc/httpd/conf/sites-enabled/900-ecojute.ru.vhost:7)

    wild alias *.ecojute.ru

    port 80 namevhost shlifabraziv.pro (/etc/httpd/conf/sites-enabled/900-shlifabraziv.pro.vhost:7)

    wild alias *.shlifabraziv.pro

    ServerRoot: "/etc/httpd"

    Main DocumentRoot: "/var/www/html"

    Main ErrorLog: "/etc/httpd/logs/error_log"

    Mutex authdigest-opaque: using_defaults

    Mutex watchdog-callback: using_defaults

    Mutex rewrite-map: using_defaults

    Mutex lua-ivm-shm: using_defaults

    Mutex ssl-cache: using_defaults

    Mutex cache-socache: using_defaults

    Mutex fcgid-pipe: using_defaults

    Mutex proxy-balancer-shm: using_defaults

    Mutex ssl-stapling-refresh: using_defaults

    Mutex authdigest-client: using_defaults

    Mutex fcgid-proctbl: using_defaults

    Mutex ssl-stapling: using_defaults

    Mutex proxy: using_defaults

    Mutex authn-socache: using_defaults

    Mutex default: dir="/etc/httpd/run/" mechanism=default

    Mutex mpm-accept: using_defaults

    PidFile: "/etc/httpd/run/httpd.pid"

    Define: DUMP_VHOSTS

    Define: DUMP_RUN_CFG

    User: name="apache" id=48

    Group: name="apache" id=48
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check your DNS to see if the main domain and subdomains point to the same IP address. And double check if the main domain has no typos and that it is really included in the setup (e.g. you might be accessing the site with www.maindomain.tld but have auto subdomain set to none instead of www).
     
    cyrillr likes this.
  3. cyrillr

    cyrillr New Member

    I will try, thank you for help.
    Do you have any ideas when I turned SSL setting off, the main domain is still showing Apache test page using local server's cert. Why is this so?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's because the website that you think the main domain is part of in fact is not the vhost that handles traffic for this domain. And as there is o better matching vhost, the apache default vhost handles the traffic. That's why I asked to double-check if there are no typos in the domain name and if the domain you enter in the browser is really covered by that site. And you might also want to check if the vhost files gets saved with .err file ending in the /etc/apache2/sites-available folder.
     
  5. cyrillr

    cyrillr New Member

    Oh god, suddenly I have 3 ip on the server. I have turned HTTP NameVirtualHost and put public ip and it's working
     
  6. cyrillr

    cyrillr New Member

    THANK YOU!!!
     

Share This Page