Note: In general the below steps are assuming the .NET (.ashx) proxy. Some of the steps may also apply to the Java or PHP proxies.
- Read through the instructions/troubleshooting on both the main proxy page as well as the specific readme for your particular proxy.
- Try the proxy against a known working url (like
http://esri.com
) and make sure the page comes back (the page may look weird but as long as you don't get an error and get something back, you know the proxy is at least working for that URL.) - Try turning logging off.
- Test if setting
mustMatch
tofalse
makes it work. If so, seemustMatch=false works but not when I set to true
below. - Are there outbound firewall settings on your machine that are preventing the proxy from getting the requests for you? You can test this by remoting into the machine and trying to open the URL you are trying to proxy in a web browser. This can be a problem particularly on AWS where in/outbound firewall rules are by default locked down (configured in the AWS managment console).
Having this setting set to true
for public/production sites is very important for security.
- Is this happening on all urls or just some of them?
- Are the URLs in your
serverUrl
tags exactly (even CAPS) matching the URLs that you're trying to access? - What is your
matchAll
setting? - Try doing the proxy request on the VM that the proxy is running on - sometimes IIS will give you better error messaging if you're on the same machine.
- Are you on the latest, released proxy version? (https://github.com/Esri/resource-proxy/releases)