I have just deployed my first web application to Amazon S3. This web application is a simple web mapping app using the ESRI Javascript API and consuming a web map from ArcGIS Online.

I have been having issues with this application because of the proxy page. According to the help, in order to use ArcGIS Online web maps, you have to set up a proxy page. I didn't do that and when I was developing the application, most components worked without issues in Chrome and Firefox. Lately though, I have noticed that the application, which supports editing, does not apply edits from Internet Explorer. The console gives an error message explaining that it is trying to reach a url through the proxy page and is not succeeding because the proxy page does not exist. As far as I know, S3 does not support this proxy page because it requires an application like PHP or ASP.Net.

Has anyone had any experience with this? I am thinking my next step may be to try and deploy this web application using AWS Elastic Beanstalk instead. Has anyone had any luck with that?


1 Answer 1


I've been experimenting with AWS lately. S3 doesn't support server-side scripting -- see below. I think you want beanstalk or just a regular EC2 server. I'm running a micro linux EC2 server essentially for free right now. It's "on demand" instead of "reserved", but I just keep it on all the time. I think the advantage of beanstalk is that you have many preconfigured options ready versus manually configuring an EC2 server. With beanstalk, you could just choose an apache setup with php and then upload the php proxy with your wesite. Versus stuff like starting Apache, opening firewall, getting public IP from Amazon, etc.

This issue brings up another question though, after reading through Esri docs and having problems with proxys and security -- I don't know why arcgis api still wants/needs to use a proxy. I don't know why it can't POST to CORS enabled servers like arcgis.com or whatever server. http://dojotoolkit.org/reference-guide/1.8/dojo/xhrPost.html

"Q: What kinds of websites should I host using Amazon S3 static website hosting? Amazon S3 is ideal for hosting websites that contain only static content, including html files, images, videos, and client-side scripts such as JavaScript. Amazon EC2 is recommended for websites with server-side scripting and database interaction." http://aws.amazon.com/s3/faqs/#What_kinds_of_websites_should_I_host_using_Amazon_S3_static_website_hosting


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.