I have recently restructed my local web server and implemented VirtualHosts for using a subdomain. Currently the public_html is the directory for my domain and dev.domain.com lands in the dev directory, this is all working correctly. however, when I am working in my index.html in the dev directory and call for layout.css which is in static, it retreived the layout.css from the static folder in public_html/ and not the static directory in dev. How can I get around this issue? I have included the directory structure before if that helps. Sorry if my wording for explaining this is confusing.
-root
--public_html
---static
---etc
--subdomains
---dev
----static
----etc
---fate
Is the block in the vhost conf
NameVirtualHost *:80
<VirtualHost *:80>
serverName domain.com
DocumentRoot "E:\root\public_html"
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName dev.domain.com
ServerAlias dev.domain.com
DocumentRoot "E:\root\subdomains\dev"
<Directory "E:\root\subdomains\dev">
AllowOverride All
order allow,deny
Allow from all
</Directory>
</VirtualHost>