Domains and aliases work only via HTTPS, HTTP returns "Welcome" page

Discussion in 'General' started by hivex, May 9, 2017.

  1. hivex

    hivex New Member

    All domains and aliases work only with HTTPS. When we try to access them via HTTP they return the default "Welcome" page. The solution is probably something simple, we just can't figure it out.
     
  2. Jesse Norell

    Jesse Norell Well-Known Member

    Maybe post 'apachectl -S' output.
     
  3. hivex

    hivex New Member

    IP addresses and domain names were changed for security reasons, "apachectl -S" returned:
    Code:
    AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:69
    VirtualHost configuration:
    xxx.xxx.xxx.xxx:80      domain1.eu (/etc/apache2/sites-enabled/100-domain1.eu.vhost:7)
    *:8081                 domain2.eu (/etc/apache2/sites-enabled/000-apps.vhost:9)
    *:8443                 domain2.eu (/etc/apache2/sites-enabled/000-ispconfig.vhost:9)
    *:80                   is a NameVirtualHost
             default server domain2.eu (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost domain2.eu (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost domain2.eu (/etc/apache2/sites-enabled/100-domain2.eu.vhost:7)
                     alias www.domain2.eu
             port 80 namevhost domain3.eu (/etc/apache2/sites-enabled/100-domain3.eu.vhost:7)
                     alias www.domain3.eu
                     alias www.domain4.eu
                     alias domain4.eu
                     alias domain5.com
                     alias domain6.us
                     alias www.domain7.eu
                     alias domain7.eu
                     wild alias *.domain5.com
                     wild alias *.domain6.us
             port 80 namevhost domain8.eu (/etc/apache2/sites-enabled/100-domain8.eu.vhost:7)
                     alias www.domain8.eu
             port 80 namevhost domain9.eu (/etc/apache2/sites-enabled/100-domain9.eu.vhost:7)
                     alias www.domain9.eu
             port 80 namevhost domain10.eu (/etc/apache2/sites-enabled/100-domain10.eu.vhost:7)
                     alias www.domain10.eu
             port 80 namevhost domain11.eu (/etc/apache2/sites-enabled/100-domain11.eu.vhost:7)
                     alias www.domain11.eu
    *:443                  is a NameVirtualHost
             default server domain2.eu (/etc/apache2/sites-enabled/100-domain2.eu.vhost:105)
             port 443 namevhost domain2.eu (/etc/apache2/sites-enabled/100-domain2.eu.vhost:105)
                     alias www.domain2.eu
             port 443 namevhost domain3.eu (/etc/apache2/sites-enabled/100-domain3.eu.vhost:162)
                     alias www.domain3.eu
                     alias www.domain4.eu
                     alias domain4.eu
                     alias domain5.com
                     alias domain6.us
                     alias www.domain7.eu
                     alias domain7.eu
                     wild alias *.domain5.com
                     wild alias *.domain6.us
             port 443 namevhost domain8.eu (/etc/apache2/sites-enabled/100-domain8.eu.vhost:93)
                     alias www.domain8.eu
             port 443 namevhost domain9.eu (/etc/apache2/sites-enabled/100-domain9.eu.vhost:125)
                     alias www.domain9.eu
             port 443 namevhost domain10.eu (/etc/apache2/sites-enabled/100-domain10.eu.vhost:133)
                     alias www.domain10.eu
             port 443 namevhost domain11.eu (/etc/apache2/sites-enabled/100-domain11.eu.vhost:93)
                     alias www.domain11.eu
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl
    Mutex mpm-accept: using_defaults
    Mutex fcgid-pipe: using_defaults
    Mutex authdigest-opaque: using_defaults
    Mutex watchdog-callback: using_defaults
    Mutex rewrite-map: using_defaults
    Mutex ssl-stapling-refresh: using_defaults
    Mutex authdigest-client: using_defaults
    Mutex fcgid-proctbl: using_defaults
    Mutex ssl-stapling: using_defaults
    Mutex ssl-cache: using_defaults
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33
     
  4. Jesse Norell

    Jesse Norell Well-Known Member

    That is the problem, that site (domain1.eu) has the ip address set, while all others are using '*'. It just happens that domain1.eu does not have ssl setup, or you would have had the same problem with https as well.
     

Share This Page