Hi,
I would like to use virtual hosting to redirect each domain I have to a folder on my server.
So I changed the DNS of my domains in order to be redirected to my server, and that's working.
Now I want to set the virtualhost config to reach the relevant folder for all my domains.
The default configuration of my Gentoo is:
And I've added just after that:Code:<VirtualHost *:80>
ServerName localhost
Include /etc/apache2/vhosts.d/default_vhost.include
<IfModule mpm_peruser_module>
ServerEnvironment apache apache
</IfModule>
</VirtualHost>
But when I want to reach "mysite", I'm always redirected to the root of my server (that is to say, to /home/ovh/www instead of /home/ovh/www/mysite)Code:<virtualhost *:80>
ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /home/ovh/www/mysite
</virtualhost>
That's as if what I added couldn't be read... I just don't understand why and what I should do to get it working.
Can you help me ?
Thanks a lot.
PS : I apologize for my poor english... I'm french.

