By design, ASP.NET web.config files "inherit" from each other. If you have a web.config in the root and a web.config in a vitual directory, the web.config in the virtual directory inherits from the web.config in the root.
As a work around, you will need to create a subdomain to deploy your code into. When using a subdomain, web.config files do not inherit from each other.