Select to view content in your preferred language

WAB with proxy 404 error

831
7
Jump to solution
06-11-2018 07:26 AM
JamesCrandall
MVP Frequent Contributor

-WAB Developer 2.7

-.jsp proxy

-https

I have a WAB deployment that needs to authenticate secured feature services via proxy. Consider:

1. I am able to authenticate by clicking directly on a url with the proxy referenced as such:

https://domain.com/proxy/proxypage.jsp?https://domain.com/sitename/rest/services/foldername/feature_...

2. Opening the WAB gives a 404 error.

This is what's in the config.json:

"wabVersion": "2.7",
   "isTemplateApp": true,
   "isWebTier": false,
   "httpProxy": {
    "useProxy": true,
    "alwaysUseProxy": false,
    "url": "https://domain.com/proxy/proxypage.jsp",
    "rules": [
     {
      "urlPrefix": "https://domain.com/sitename/rest/services/foldername/feature_service_name/FeatureServer",
      "proxyUrl": "https://domain.com/proxy/proxypage.jsp"
     }
    ]
 },
0 Kudos
1 Solution

Accepted Solutions
JamesCrandall
MVP Frequent Contributor

This was an internal network problem and not related to the proxy page or WAB config.

View solution in original post

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus

James,

   I would drop the FeatureServer portion of the url from your config.json rule.

JamesCrandall
MVP Frequent Contributor

Thank you! 

I made the suggested change in the config.json but still getting the 404 when attempting to access outside our network. 

1. The WAB opens fine when logged into corp network.

2. I can access the secured FS directly outside network with url specified in OP  This seems to suggest that the proxy.jsp page is correctly setup and there is another issue with the WAB somewhere?  The web map and wab are both shared to public from their AGOL items.

Thanks again.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

What is the actual url that is resulting in the 404 error?

JamesCrandall
MVP Frequent Contributor

sent as DM

0 Kudos
RandallWilliams
Esri Regular Contributor

This kinda sounds like a forward proxy issue instead of a proxy page issue. Unsure why the images are broken here:

How To: Set a proxy in the Web AppBuilder (Developer Edition) 

0 Kudos
JamesCrandall
MVP Frequent Contributor

Thanks Randall -- we develop in WAB developer 2.7 with the node.js rather than command line (as suggested in the link).  However, the issue I'm having is with authenticating the deployed WAB itself. 

Thanks for this though as it'll likely fix the other issue when developing!

0 Kudos
JamesCrandall
MVP Frequent Contributor

This was an internal network problem and not related to the proxy page or WAB config.

0 Kudos