{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/380","repository_url":"https://api.github.com/repos/Esri/resource-proxy","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/380/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/380/events","html_url":"https://github.com/Esri/resource-proxy/issues/380","id":169067934,"number":380,"title":"Cannot access non-authenticated resource via proxy","user":{"login":"intotecho","id":659672,"avatar_url":"https://avatars.githubusercontent.com/u/659672?v=3","gravatar_id":"","url":"https://api.github.com/users/intotecho","html_url":"https://github.com/intotecho","followers_url":"https://api.github.com/users/intotecho/followers","following_url":"https://api.github.com/users/intotecho/following{/other_user}","gists_url":"https://api.github.com/users/intotecho/gists{/gist_id}","starred_url":"https://api.github.com/users/intotecho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intotecho/subscriptions","organizations_url":"https://api.github.com/users/intotecho/orgs","repos_url":"https://api.github.com/users/intotecho/repos","events_url":"https://api.github.com/users/intotecho/events{/privacy}","received_events_url":"https://api.github.com/users/intotecho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Esri/resource-proxy/labels/*PHP*","name":"*PHP*","color":"eeeeee"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-03T07:40:55Z","updated_at":"2016-08-08T04:26:56Z","closed_at":"2016-08-08T04:22:34Z","body":"I have installed the proxy and am trying to access the resource via the proxy.\r\n _PHP/_proxy.config_ includes \r\n```\r\n<ProxyConfig allowedReferers=\"*\"\r\n             logFile=\"/var/log/proxy/arcgisproxy_log.log\"\r\n             mustMatch=\"true\">\r\n    <serverUrls>\r\n        <serverUrl url=\"http://ec2-54-204-216-109.compute-1.amazonaws.com:6080/arcgis/rest/services/wdpa/wdpa/MapServer/0\" matchAll=\"true\"  />\r\n    </serverUrls>\r\n</ProxyConfig>\r\n```\r\nThere are no username, password or oauth2 parameters inside the <serverUrl> tag.\r\n\r\nWhen I call the URL, \r\nhttp://bunjilforestwatch.net/PHP/proxy.php?http://ec2-54-204-216-109.compute-1.amazonaws.com:6080/arcgis/rest/services/wdpa/wdpa/MapServer/0=&callback=ags_jsonp.ags_jsonp_0_288177&f=json\r\n\r\nError 500 is returned and the _arcgisproxy_log.log_ shows\r\n>08-03-16 01:10:33 | GET detected\r\n> 08-03-16 01:10:33 | could not find driver\r\n> 08-03-16 01:10:33 | Can not determine if OAuth or ArcGIS Server means of authentication.  Check config for errors.\r\n\r\nThe resource should be accessible without authentication.\r\n\r\nLooks like a user error, but I can't find info on accessing unprotected layers."},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/238139441","html_url":"https://github.com/Esri/resource-proxy/issues/380#issuecomment-238139441","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/380","id":238139441,"user":{"login":"intotecho","id":659672,"avatar_url":"https://avatars.githubusercontent.com/u/659672?v=3","gravatar_id":"","url":"https://api.github.com/users/intotecho","html_url":"https://github.com/intotecho","followers_url":"https://api.github.com/users/intotecho/followers","following_url":"https://api.github.com/users/intotecho/following{/other_user}","gists_url":"https://api.github.com/users/intotecho/gists{/gist_id}","starred_url":"https://api.github.com/users/intotecho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intotecho/subscriptions","organizations_url":"https://api.github.com/users/intotecho/orgs","repos_url":"https://api.github.com/users/intotecho/repos","events_url":"https://api.github.com/users/intotecho/events{/privacy}","received_events_url":"https://api.github.com/users/intotecho/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T04:26:56Z","updated_at":"2016-08-08T04:26:56Z","body":"Note the correct URL for arcgislink.js ends in MapServer, not MapServer/0. \r\n\r\nI was hoping to use the proxy to avoid the fact that port 6080 is blocked where I work, but then my dev server is on a different URL and it is blocked anyway. I will ask the publisher to move it to port 80."}}
{"actor":{"display_login":"intotecho"}}