For some reason,i have same document root on two domain and ip adress of server.I installed webmin and tried to fix it but still nothing.With little playing it changed from document root of ip adress to document root of first domain but now it show content of first domain on ip adress and second domain.I think httpd.conf is fine,beacuse i installed new conf during webmin install.Could be something with nameserver or dns? Also,i noticed i can login to both domains with username from one domain which shoul'nt happening.Mysql work,even pop server working,i can login onto it,but any mail operation simply doesnt work.Which mean no matter do i send mail to adress on server,send mail from server,put mail on forwarding it doesnt work.And webmin doesnt report any error.And i think that cause same error what cause previous case.Any idea how to fix it?
Can you post your APache vhost configuration? Did you read this doc? http://httpd.apache.org/docs/2.2/vhosts/name-based.html