ALL websites requests point to a specific domain

2 posts / 0 new
Last post
#1 Fri, 11/01/2019 - 19:30
NikosGr

ALL websites requests point to a specific domain

Hello, i use CentOS7 and Webmin/VirtualMin.

i have 4 sites:

kidsclubpaidika.gr

ypsilandio.gr

varsa.gr

superhost.gr

After i removed httpd httpd-devel and reinstalled it, for some peculiar reason all my websites requests point to a specific domain of mine being superhost.gr instead of their own content.

Could you please explain to me why this might happen and how to fix it?

Thank you all.

Fri, 11/01/2019 - 23:48
NikosGr

Here is the output of apachectl -S

[root@superhost ~]# apachectl -S
VirtualHost configuration:
176.223.129.220:80     is a NameVirtualHost
         default server superhost.gr (/etc/httpd/conf/httpd.conf:362)
         port 80 namevhost superhost.gr (/etc/httpd/conf/httpd.conf:362)
                 alias www.superhost.gr
                 alias webmail.superhost.gr
                 alias admin.superhost.gr
                 alias autoconfig.superhost.gr
                 alias autodiscover.superhost.gr
         port 80 namevhost kidsclubpaidika.gr (/etc/httpd/conf/httpd.conf:412)
                 alias www.kidsclubpaidika.gr
                 alias webmail.kidsclubpaidika.gr
                 alias admin.kidsclubpaidika.gr
                 alias autoconfig.kidsclubpaidika.gr
                 alias autodiscover.kidsclubpaidika.gr
         port 80 namevhost varsa.gr (/etc/httpd/conf/httpd.conf:470)
                 alias www.varsa.gr
                 alias webmail.varsa.gr
                 alias admin.varsa.gr
                 alias autoconfig.varsa.gr
                 alias autodiscover.varsa.gr
         port 80 namevhost ypsilandio.gr (/etc/httpd/conf/httpd.conf:524)
                 alias www.ypsilandio.gr
                 alias webmail.ypsilandio.gr
                 alias admin.ypsilandio.gr
                 alias autoconfig.ypsilandio.gr
                 alias autodiscover.ypsilandio.gr
         port 80 namevhost zoevax (/etc/httpd/conf/httpd.conf:578)
                 alias www.zoevax
                 alias webmail.zoevax
                 alias admin.zoevax
                 alias autoconfig.zoevax
                 alias autodiscover.zoevax
176.223.129.220:443    superhost.gr (/etc/httpd/conf/httpd.conf:643)
[fe80::21c:42ff:fe91:a981]:80 is a NameVirtualHost
         default server superhost.gr (/etc/httpd/conf/httpd.conf:362)
         port 80 namevhost superhost.gr (/etc/httpd/conf/httpd.conf:362)
                 alias www.superhost.gr
                 alias webmail.superhost.gr
                 alias admin.superhost.gr
                 alias autoconfig.superhost.gr
                 alias autodiscover.superhost.gr
         port 80 namevhost kidsclubpaidika.gr (/etc/httpd/conf/httpd.conf:412)
                 alias www.kidsclubpaidika.gr
                 alias webmail.kidsclubpaidika.gr
                 alias admin.kidsclubpaidika.gr
                 alias autoconfig.kidsclubpaidika.gr
                 alias autodiscover.kidsclubpaidika.gr
         port 80 namevhost varsa.gr (/etc/httpd/conf/httpd.conf:470)
                 alias www.varsa.gr
                 alias webmail.varsa.gr
                 alias admin.varsa.gr
                 alias autoconfig.varsa.gr
                 alias autodiscover.varsa.gr
         port 80 namevhost ypsilandio.gr (/etc/httpd/conf/httpd.conf:524)
                 alias www.ypsilandio.gr
                 alias webmail.ypsilandio.gr
                 alias admin.ypsilandio.gr
                 alias autoconfig.ypsilandio.gr
                 alias autodiscover.ypsilandio.gr
         port 80 namevhost zoevax (/etc/httpd/conf/httpd.conf:578)
                 alias www.zoevax
                 alias webmail.zoevax
                 alias admin.zoevax
                 alias autoconfig.zoevax
                 alias autodiscover.zoevax
[fe80::21c:42ff:fe91:a981]:443 superhost.gr (/etc/httpd/conf/httpd.conf:643)
*:443                  superhost.gr (/etc/httpd/conf.d/ssl.conf:56)
ServerRoot: "/etc/httpd"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/etc/httpd/logs/error_log"
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: 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 ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex fcgid-pipe: using_defaults
Mutex authdigest-opaque: using_defaults
PidFile: "/run/httpd/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="apache" id=48
Group: name="apache" id=48

Doesn't it look normal?

Intel Inside, Idiot Outside!

Topic locked