If I have an "application" defined in IIS Manager, I can get the value of the server variable APPL_MD_PATH
to retrieve the physical path associated to the application.
If I have a "virtual directory" configured, APPL_MD_PATH
still gives me the physical path associated to the application, not the physical path associated to the virtual directory.
How can I retrieve the physical path to the virtual directory to which the current request is associated?
How can I determine whether the request is being served from an application versus a virtual directory?