Apache2 – Set Document Root based on subdirectory

I have a default Virtual Host. It is configured to watch Document Root inside /var/www/html and works great. But I have a problem. I have multiple sites inside subdirectories and I don’t know how to set Document Root for each of them. For example, /var/www/html/test, /var/www/html/test2, etc. When I include file from /var/www/html/test, it searches inside var/www/html. For example, I include file like include_once '/core.php', but I have an error Failed opening required '/var/www/html/core.php', because there is no current file here. Is it possible to set Document Root for each of directories inside main Virtual Host? Thank you!

Virtual host returns 404 when i add file path

i’m having a problem whit a web-site project i’m developing by myself.
I’ve downloaded XAMPP to manage the web-site server, db and files, than i configured a virtual host so now when i go to the url www.woofcms.com, it opens the index.html as i wanted.
The problem is that if i add something to the URL (like www.woofcms.com/login) the server responds whit an error 404.
These are the settings of the ‘httpd-vhosts.conf’ file:httpd-vhosts.conf