If juan.com and juantere.com are serving the same docroot, just collapse them into a single VirtualHost directive. /etc is also not a good storage location for your htdocs. Also, why is there a space between juan and .com in your ServerAlias? I suggest the following: <VirtualHost *:80> ServerAdmin admin@xxxxxxxx DocumentRoot /var/www/juan.com ## don't put your htdocs in your /etc ServerName juan.com ServerAlias www.juan.com ServerAlias juantere.com ServerAlias www.juantere.com ErrorLog /etc/apache2/logs/error_log CustomLog /etc/apache2/logs/error_log common </VirtualHost> Hope that helps. --Victor On 5/1/07, j k <jonnykent@xxxxxxxxx> wrote:
Maybe you need a different doc root for each site else it will end serving from the same doc root for all sites On 4/27/07, Alejandro Decchi < adecchi@xxxxxxxxx> wrote: > > > <snip/> > Here in this file i include the configuration like : > > <VirtualHost *:80> > ServerAdmin admin@xxxxxxxx > DocumentRoot /etc/apache2/htdocs/ <==========here > ServerName www.juan.com > ServerAlias juan .com > ErrorLog /etc/apache2/logs/error_log > CustomLog /etc/apache2/logs/error_log common > </VirtualHost> > > > <VirtualHost *:80> > ServerAdmin admin@xxxxxxxx > DocumentRoot /etc/apache2/htdocs/ <=========== and here > ServerName www.juantere.com > ServerAlias juantere .com > ErrorLog /etc/apache2/logs/error_log > CustomLog /etc/apache2/logs/error_log common > </VirtualHost> > > > > then i try to enter to my differen site that are alocated in my server and allways my server open the some webpage for old > > The i put diferen virtual host for each domain in site-enable and i contunue with the some trouble > > Someone can Help me ?? > >
-- http://www.victortrac.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx