mail.xxxxx.com url going wrong domain

TheMask

Verified User
Joined
Jan 20, 2011
Messages
99
hi i have a strange problem

normaly
when i open browser mail.xxxxxx.com
gives me apache function normaly or something like that.

but in my server
mail.xxxxxx.com going another hosting in my server. all domain going same...
url like dont change its not redirect?

how can i find problem i look dns conf and httpd conf all is fine...
 
Hello,

Did you try to check it with intodns.com? Note, by default mail.domain.com points to your server and the name is used for MX records in DNS zone. I'm not quite sure, what you want to achieve with that? Do you want to point mail.domain.com to another IP/server or what?
 
no
i dont want point anywhere
the problem is that i dont want mail.domain.com point anywhere but now it going to another domain...

example:
mail.aaaa.com ---> www.bbbb.com
but all my domain goes bbbb.com
mail.cccc.com ---> www.bbbb.com
 
Since mail.domain.com is used when connecting to POP/IMAP/SMTP servers it should present in DNS and should be delegated. If you want to remove mail.domain.com you should update your DNS templates not to create such a record but use something different for MX records.

And since mail.domain.com presents in DNS zone and has it's A record with a server IP, and there is a web server on that IP of course if you type the address in your browser you'll see some pages from apache. so the alternative way would to remove the IP from apache, or deny connections to MX IP:80 with a firewall, of course you'll need o move site to another IP if any is hosted on that IP.
 
OK, I see... so all hosts point to www.bbbb.com and with an IP you see www.bbbb.com instead of "apache function normaly" and a "shared ip" page.

So, either your Apache configs are messed or you've got www.bbbb.com pages in /var/www/html/ or /home/admin/domains/shared/ (admin here can be replaced with a different reseller name if the account with www.bbbb.com is created by another reseller).
 
Did you check the paths. Are they containing any files of the web-site? If not, then you might need to check /etc/httpd/conf/ips.conf and make sure, you've got there lines

NameVirtualHost aaa.bbb.ccc.ddd:80
NameVirtualHost aaa.bbb.ccc.ddd:443

where aaa.bbb.ccc.ddd is your real IP. And after the lines should start a section:

Code:
<VirtualHost aaa.bbb.ccc.ddd:80>
        ServerName shared.domain
        DocumentRoot /home/admin/domains/sharedip

Do you see anything of that kind?

And what you see with

Code:
# grep /etc/httpd/conf/ips.conf /etc/httpd/conf/extra/httpd-vhosts.conf

?
 
i dont find any recond for that ip and i add these lines

now working well thx.

<VirtualHost aaa.bbb.ccc.ddd:80>
ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip
ServerName localhost
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>
 
Back
Top