Hello to everyone.
I've developed an application using the ESRI's JavaScript API. My web services are deployed in an ArcGIS Server 10.2 machine. These services are working properly through a web adaptor and I can access the admin interface externally (using sitename.com/arcgis/rest/services).
Due to economical restrictions I have to deploy the app in the same machine where the services and the web adaptor are. By now, I have created a site in IIS and I am able to run it locally (localhost/sitename). The problems come when I try to use my sitename (and not localhost) to access the application. I want to use the web adaptor name for both the services interface and the application itself. I've tried few things: