BrickEmployee
09-18-2003, 04:01 PM
Hi there!!
I'm trying to setup my first namevirtualhost, and my httpd.conf is:
NameVirtualHost 127.0.0.1
<VirtualHost mydomain1.com>
DocumentRoot /var/www/mydomain1/
ServerName www.mydomain1.com
ServerAlias mydomain1.com
</VirtualHost>
<VirtualHost mydomain2.com>
DocumentRoot /var/www/mydomain2
ServerName www.mydomain2.com
ServerAlias mydomain2
</VirtualHost>
But when I try to browse mydomain1 or mydomain2 it apears the default apache html file
my documentroot is set to /var/www/html where that file is
Question: It's because of that??
I'm using a dynamic ip but i've got the redirect to my machine using a service of dynamic dns (zoneedit)
and everything works fine for one domain but i want to serve my 2 domains.
Can you help-me with this???
Thks,
./brickemployee
I'm trying to setup my first namevirtualhost, and my httpd.conf is:
NameVirtualHost 127.0.0.1
<VirtualHost mydomain1.com>
DocumentRoot /var/www/mydomain1/
ServerName www.mydomain1.com
ServerAlias mydomain1.com
</VirtualHost>
<VirtualHost mydomain2.com>
DocumentRoot /var/www/mydomain2
ServerName www.mydomain2.com
ServerAlias mydomain2
</VirtualHost>
But when I try to browse mydomain1 or mydomain2 it apears the default apache html file
my documentroot is set to /var/www/html where that file is
Question: It's because of that??
I'm using a dynamic ip but i've got the redirect to my machine using a service of dynamic dns (zoneedit)
and everything works fine for one domain but i want to serve my 2 domains.
Can you help-me with this???
Thks,
./brickemployee