I did try this before but no luck.
basically every virtual server has a file into conf.d with a generic
<VirtualHost *:80>
ServerName mydomain.com
ServerAlias
www.mydomain.com
DirectoryIndex index.php index.html index.htm
ServerSignature email
DocumentRoot /var/www/mydomain.com/
</Virtualhost>
Where the main virtual host has its own file still in conf.d in the format:
<VirtualHost *:80>
ServerName domain.serverhostname.com
DocumentRoot /var/www/html
</VirtualHost>
I'm wondering about 2 things now.
1) shell I add the
<VirtualHost *:80>
ServerName domain.serverhostname.com
DocumentRoot /var/www/html
</VirtualHost>
inside http.conf instead then conf.d/myfile?
2) the current default virtual server (which I don't want to be the default) has both ServerName directive AND file name into conf.d starting with a "d"
where the one I want to be the default has a filename (no ServerName used) starting with an "m"
Is Apache giving priority to the config file name or to the ServerName command?
Cheers