I'm new with apache2 and virtualHosts and all these things, I'm trying to set multiple subdomains, each in one file.
For example, I'll have
quentin-dommerc.com file in site-available :
<VirtualHost quentin-dommerc.com:80> DocumentRoot /var/www/ ServerName quentin-dommerc.com </VirtualHost>
and en.quentin-dommerc.com file in site-available :
<VirtualHost en.quentin-dommerc.com:80> DocumentRoot /var/www/en/ ServerName en.quentin-dommerc.com </VirtualHost>
But whatever the subdomain I go to, I'm always on quentin-dommerc.com :(
Note that I've a2ensite my files and they're well in site-enabled. I've also reloaded/restarted apache2. My CNAME are also set.