Test page at second domain

Discussion in 'Installation/Configuration' started by Cherimo, Jul 14, 2021.

  1. Cherimo

    Cherimo New Member

    Hi,
    I have installed ISPConfig succesfully and everything works fine when I added my first domain.
    Somehow when I added a second domain I only get Apache test page (Testing 123...) when I visit the domain.
    The file settings in sites-available shows the right path, also the folder and files do exist.
    Logs are empty.

    What am i doing wrong here?

    This is the ISP Check log:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is CentOS Linux release 7.9.2009 (Core)

    [INFO] uptime: 10:29:53 up 1:00, 2 users, load average: 0.00, 0.05, 0.05

    [INFO] memory:
    total used free shared buff/cache available
    Mem: 7.5G 1.8G 4.8G 10M 949M 5.5G
    Swap: 7.7G 0B 7.7G

    [INFO] systemd failed services status:
    0 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.

    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.2.5


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.2.34
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.2.34

    ##### PORT CHECK #####

    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening

    ##### MAIL SERVER CHECK #####

    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.

    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Unknown process (httpd) (PID 9483)
    [INFO] I found the following mail server(s):
    Postfix (PID 8571)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 8639)
    [INFO] I found the following imap server(s):
    Dovecot (PID 8639)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 8711)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [anywhere]:143 (8639/dovecot)
    ***.***.***.***:53 (8736/named)
    [localhost]:53 (8736/named)
    [anywhere]:21 (8711/pure-ftpd)
    [anywhere]:22 (1038/sshd)
    [localhost]:953 (8736/named)
    [anywhere]:25 (8571/master)
    [anywhere]:993 (8639/dovecot)
    [anywhere]:995 (8639/dovecot)
    [localhost]:10024 (8597/amavisd)
    [localhost]:9000 (1037/php-fpm:)
    [localhost]:10025 (8571/master)
    [localhost]:10026 (8597/amavisd)
    [anywhere]:3306 (8436/mysqld)
    [localhost]:10027 (8571/master)
    [anywhere]:110 (8639/dovecot)
    [localhost]43 (8639/dovecot)
    *:*:*:*::*:8080 (9483/httpd)
    *:*:*:*::*:80 (9483/httpd)
    *:*:*:*::*:8081 (9483/httpd)
    *:*:*:*::*:53 (8736/named)
    *:*:*:*::*:21 (8711/pure-ftpd)
    *:*:*:*::*:22 (1038/sshd)
    *:*:*:*::*:953 (8736/named)
    *:*:*:*::*:25 (8571/master)
    *:*:*:*::*:443 (9483/httpd)
    *:*:*:*::*:993 (8639/dovecot)
    *:*:*:*::*:995 (8639/dovecot)
    *:*:*:*::*:10024 (8597/amavisd)
    *:*:*:*::*:10026 (8597/amavisd)
    [localhost]10 (8639/dovecot)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-sshd (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0




    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try using http and https, does the same thing happens in both cases, or e.g. just with https?
    The read before posting contains some solutions for cases where a different domain shows up, please check that: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
    And double-check that the apache Test page is really from this server, e.g. by looking at the httpd access.log.
     
  3. Cherimo

    Cherimo New Member

    Thank you for your fast response.

    I followed the steps to adjust the domain settings.
    Both of them have now specific ip and SSL is turned off but still no luck.
    The access log shows the following rule:
    [14/Jul/2021:11:20:00 -0400] "GET / HTTP/1.1" 403 4897 "-" "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Mobile Safari/537.36"
    It seems a 403 permission error.
    But this time both domain names showing "Test page 123..." I have tried to undone the action but the the test pages still remains on both domains.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Using a specific IP is not necessary, in general, it's best to use *. What matters is that you don't use * for one website and an IP for another website, as this would mean that the website with the IP gets all traffic of the other site. Same with SSL, so SSL on is perfectly fine, just don't use SSL for one site and no ssl for another site which both point to the same IP in DNS.

    It takes up to 60 seconds until changes are written to disk.

    Run the command:

    hostname -f

    does the result of this command matches exactly one of the websites you created?
     

Share This Page