barbaros wrote:
should i create a new vhost file in /etc/apache2/sites-available, as x.domain.com or just add the virtualhost conf into the domain.com's ?
Should i create a new folder like /var/www/x.domain.com or is it enough if i create a folder under my domain.com's public_html and point it out there from vhost conf.
either answer will work, it's a matter of semantics really. If you consider X to be a standalone site, I'd say put it in it's own file in the sites-available and it's own directory. If it's a subsite, putting it in the same conf file and directory makes sense.
what problem are you having? consider posting the real domain names, it'll help us help you.