Hey,
I set up a new Virtualmin installation on a virtual machine. I gave this virtual machine 6 network interfaces, supplied with each one IP. The machine runs Debian 7.8 and has only the basic IPtables set up at the moment (allow some ports and allow for all I think). The hostname of the machine is hm1.domainx1.com. I set up a virtual server for domainx1.com and set the IP to the IP linked with eth4. When I ping from eth4 to google, I get a response.
The domain domainx1.com is at this moment still live in a different server.
I want to test and see if the website is accessible from the same server, so I go to the HTTP tunnel function and enter http://domainx1.com. I get the following: Failed to connect to domainx1.com:80 : Connection refused
The apache2 server listens on :80 and:443
What did I do wrong?
Netstat gives me:
root@hm1:# netstat -nlptu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 3233/mysqld tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 8367/master tcp 0 0 xx.xx.xx.182:587 0.0.0.0:* LISTEN 8367/master tcp 0 0 xx.xx.xx.176:587 0.0.0.0:* LISTEN 8367/master tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 3752/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 3752/dovecot tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 3209/spamd.pid tcp 0 0 xx.xx.xx.176:6000 0.0.0.0:* LISTEN 12004/sshd tcp 0 0 0.0.0.0:20050 0.0.0.0:* LISTEN 3365/perl tcp 0 0 xx.xx.xx.96:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 xx.xx.xx.182:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 xx.xx.xx.181:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 xx.xx.xx.178:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 xx.xx.xx.177:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 xx.xx.xx.176:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 13363/named tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN 3245/lookup-domain- tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 13363/named tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 8367/master tcp 0 0 xx.xx.xx.182:25 0.0.0.0:* LISTEN 8367/master tcp 0 0 xx.xx.xx.176:25 0.0.0.0:* LISTEN 8367/master tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN 8481/opendkim tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN 3296/perl tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 3752/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 3752/dovecot tcp6 0 0 :::110 :::* LISTEN 3752/dovecot tcp6 0 0 :::143 :::* LISTEN 3752/dovecot tcp6 0 0 :::80 :::* LISTEN 12280/apache2 tcp6 0 0 :::53 :::* LISTEN 13363/named tcp6 0 0 :::21 :::* LISTEN 8407/proftpd: (acce tcp6 0 0 ::1:953 :::* LISTEN 13363/named tcp6 0 0 :::443 :::* LISTEN 12280/apache2 tcp6 0 0 :::993 :::* LISTEN 3752/dovecot tcp6 0 0 :::995 :::* LISTEN 3752/dovecot udp 0 0 0.0.0.0:20000 0.0.0.0:* 3296/perl udp 0 0 0.0.0.0:20050 0.0.0.0:* 3365/perl udp 0 0 xx.xx.xx.96:53 0.0.0.0:* 13363/named udp 0 0 xx.xx.xx.182:53 0.0.0.0:* 13363/named udp 0 0 xx.xx.xx.181:53 0.0.0.0:* 13363/named udp 0 0 xx.xx.xx.178:53 0.0.0.0:* 13363/named udp 0 0 xx.xx.xx.177:53 0.0.0.0:* 13363/named udp 0 0 xx.xx.xx.176:53 0.0.0.0:* 13363/named udp 0 0 127.0.0.1:53 0.0.0.0:* 13363/named udp6 0 0 :::53 :::* 13363/named
I notice that apache only seems to be listening on ipv6 addresses. Any thoughts?
I kinda solved the problem. I altered the /etc/apache2/ports.conf to listen to the IP addresses set-up for the server and I changed the default server file to only listen to the main IP of the server. This seems to be working for another domain I added to the server. The http tunnel still gives errors though.