Tengo dos dominios en mi servidor dedicado con webmin dominio1.com y dominio2.com al hacer el virtualhost desde apache los redirigi cada uno a su directorio especifico
/home/dominio1/public_html
/home/dominio2/public_html
pero cuando ingreso al dominio2.com me muestra lo que hay en el dominio1.com no se que mas moverle :S o si esta mal configurado, les dejo la configuración del virtualhost
Código:
DocumentRoot /home/dominio1/public_html ServerName dominio1.com ServerAdmin [email protected] <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/dominio1/public_html> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> <Directory "/home/dominio1/public_html"> allow from all Options +Indexes </Directory> ContentDigest on UseCanonicalName off
Código:
DocumentRoot /home/dominio2/public_html ServerName dominio2.com ServerAdmin [email protected] <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/dominio2/public_html> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> <Directory "/home/dominio2/public_html"> allow from all Options +Indexes </Directory> ContentDigest on UseCanonicalName off