Replace all relative path to <%=basePath%>.
Application must work in no matter how docBase set.