_default_ VirtualHost overlap on port 80
Solution 1:
You definitely want NameVirtualHost uncommented. That tells your server to server different virtual hosts based on the Doman Names used to reach it. That's why you see all requests go to the first site when it's removed.
Solution 2:
I already fix this proble with CWP
just go to /usr/local/apache/conf/sharedip.conf
check this put * in your ip server
NameVirtualHost *:80
<VirtualHost *:80>
ServerName yourdomainserver.ltd
DocumentRoot /usr/local/apache/htdocs
ServerAdmin [email protected]
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
</VirtualHost>
<Directory "/">
AllowOverride All
Allow from all
Order Deny,Allow
</Directory>
then go to /usr/local/apache/conf.d/vhost.conf and be sure of each virtualhost looks like this
# vhost_start chango.com.ve
<VirtualHost *:80>
ServerName yourdomain.ltd
ServerAlias www.yourdomain.ltd
ServerAdmin [email protected]
DocumentRoot "/home/yourdomain/public_html"
ScriptAlias /cgi-bin/ "/home/yourdomain/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/yourdomain/yourdomain.ltd/*.conf
</VirtualHost>^M
# vhost_end yourdomain.ltd
this works for me!