Hi all. First time user of virtualmin and webmin. Looks good this far =)
I am on CentOS 6, virtualmin installed trough install.sh from docs. No trouble installing, did use a minimal centos install (almost nothing extra installed), and install.sh took care of all dependencies.
Everything works as expected, exept adding virtualhosts and routing to corrent page.
Server: server1.mydomain.com (/var/www/html/index.php)
Domain 1: mydomain.com (/home/mydomain/public_html/index.php)
Domain 2: myseconddomain.com (/home/myseconddomain/public_html/index.php)
Each index.php have a simple echo ‘domain’; Just to let me know where I am beeing sent by the server.
So now,
If I visit server1.mydomain.com => I will see the echo for DOMAIN 1
else if mydomain.com => I will see the echo DOMAIN 1
else if myseconddomain => I will see the echo DOMAIN 1
Then I deleted the mydomain.com virtualserver in virtualmin.
Now I will see MYSECONDDOMAIN.Com echo on both server1.mydomain.com and myseconddomain.com
I have read trough tons of pages now, trying to figure out what settings are wrong. I have the correct ETH0 and ip adress spesified everytwhere I can find, I have checked that no *:80 is in httpd.conf, I have clicked almost everywhere to find any settings that can cause this problem. But I am stuck =(
Any suggestions where to move on from here?
XEN VPS
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:3E:F9:22:33
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.128
inet6 addr: fe30::514:3ece:fdd3:2f55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6265 errors:0 dropped:0 overruns:0 frame:0
TX packets:4071 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:868231 (847.8 KiB) TX bytes:1442665 (1.3 MiB)
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:305 errors:0 dropped:0 overruns:0 frame:0
TX packets:305 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39760 (38.8 KiB) TX bytes:39760 (38.8 KiB)
# rpm -qa | grep httpd
httpd-tools-2.2.15-15.el6.vm.1.i686
httpd-2.2.15-15.el6.vm.1.i686
# cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
domain localdomain
No /var/log/virtualmin/domain*_error.log, or any other pointers in any other log files.
Any suggestions where and what values to check in the different config files?
Thanks for your assistance, it is appreciated!!
-Tom