all websites go to default site

c0ld

Verified User
Joined
Feb 4, 2006
Messages
26
Location
Belgium
Hey guys,

I've recently modified a user so it would have a new (shared) IP for it's websites. But now, ALL websites of this user show the default website's page. When I modify the default website, all websites show the new page.

Do you have any idea how I can fix this? Where & what to look for?

Thanks!

Compiled on CentOS 5.0 64-bit
Server Version 1.39.1
 
Hello,

Please show your output for

Code:
netstat -an | grep LISTEN

And try to run this:

Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
 
Hi,

I've executed both commands, but it's not working..

tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 10.0.0.2:53 0.0.0.0:* LISTEN
tcp 0 0 [IP]:53 0.0.0.0:* LISTEN
tcp 0 0 [IP]:53 0.0.0.0:* LISTEN
tcp 0 0 [IP]:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 :::587 :::* LISTEN
tcp 0 0 :::2222 :::* LISTEN
tcp 0 0 :::21 :::* LISTEN
tcp 0 0 :::8888 :::* LISTEN
tcp 0 0 :::25 :::* LISTEN
tcp 0 0 :::1338 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
unix 2 [ ACC ] STREAM LISTENING 11958 /var/run/dovecot/login/ssl-params
unix 2 [ ACC ] STREAM LISTENING 8522 @ISCSIADM_ABSTRACT_NAMESPACE
unix 2 [ ACC ] STREAM LISTENING 61424707 /var/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 11960 /var/run/dovecot/login/pop3
unix 2 [ ACC ] STREAM LISTENING 11964 /var/run/dovecot/login/imap
unix 2 [ ACC ] STREAM LISTENING 11968 /var/run/dovecot/doveadm-server
unix 2 [ ACC ] STREAM LISTENING 11970 /var/run/dovecot/dns-client
unix 2 [ ACC ] STREAM LISTENING 9927 @/var/run/hald/dbus-b7jdE9nHBX
unix 2 [ ACC ] STREAM LISTENING 11972 /var/run/dovecot/login/dns-client
unix 2 [ ACC ] STREAM LISTENING 11974 /var/run/dovecot/director-admin
unix 2 [ ACC ] STREAM LISTENING 11976 /var/run/dovecot/dict
unix 2 [ ACC ] STREAM LISTENING 11978 /var/run/dovecot/config
unix 2 [ ACC ] STREAM LISTENING 11980 /var/run/dovecot/login/login
unix 2 [ ACC ] STREAM LISTENING 11982 /var/run/dovecot/auth-login
unix 2 [ ACC ] STREAM LISTENING 11984 /var/run/dovecot/auth-client
unix 2 [ ACC ] STREAM LISTENING 11986 /var/run/dovecot/auth-userdb
unix 2 [ ACC ] STREAM LISTENING 11988 /var/run/dovecot/auth-master
unix 2 [ ACC ] STREAM LISTENING 11990 /var/run/dovecot/auth-worker
unix 2 [ ACC ] STREAM LISTENING 11992 /var/run/dovecot/anvil
unix 2 [ ACC ] STREAM LISTENING 11994 /var/run/dovecot/anvil-auth-penalty
unix 2 [ ACC ] STREAM LISTENING 8500 @ISCSID_UIP_ABSTRACT_NAMESPACE
unix 2 [ ACC ] STREAM LISTENING 9928 @/var/run/hald/dbus-mghdgDMnHm
unix 2 [ ACC ] STREAM LISTENING 9121 /var/run/audispd_events
unix 2 [ ACC ] STREAM LISTENING 9770 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 9865 /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 9898 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 14025 /dev/gpmctl
 
Last edited:
How do you connect to your sites? http? or https? If you show a couple of real domains it would help us to help you more quicker.
 
What does the /usr/local/directadmin/data/users/$USERNAME/httpd.conf file look like where the $USERNAME should be replaced with the user you are looking at.

You should see the following as a minimum:
<VirtualHost 999.999.999.999:80 >
ServerName www.example.com
ServerAlias www.example.com example.com
DocumentRoot /home/$USERNAME/domains/example.com/public_html
</VirtualHost>
NOTE: 999.999.999.999 is replaced with your IP, example.com is replaced with their domain name and $USERNAME is replaced with the system username of the user with the problem.

Take not of all the VirtualHost blocks (with the :80 in it), they should all have a different ServerName and ServerAlias and their DocumentRoot should all be different. If all they all have the same DocumentRoot, they will all serve the same content.

If they are all different, then you need to look at the log files to see where the problem is happening. Look at the log files in /var/log/httpd and /var/log/httpd/domains/ to see if you see any errors.
 
The other thing to look at, is to make sure that the IP addresses for those domains match in DNS as well as in /usr/local/directadmin/data/users/$USERNAME/httpd.conf . If one is pointing to the wrong IP address, then it will show you the default, since everything won't match properly (IP address and domain name).
 
Hey Toml,

thanks for your reply. I've checked but everything looks okay..
And when I access the site via one of the none-working domains the matching log file doesn't change.
 
And, will you show your httpd.conf for any of the none-working domains? Any real domain name here or in PM would help us to help you. Without that, it's almost impossible to guess anything more.
 
Then, does your /etc/httpd/conf/httpd.conf file contain the Include line for that particular users httpd.conf?
 
And does new IP match the IP in virtual hosts? And do the all domains have NS servers of your directadmin server?
 
My ISP's tech guy managed to fix this (I have no idea how). He mentioned something about nginx..

But thanks for the replies guys! Really appreciate it.
 
Back
Top