Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
314 views
in General by (240 points)
closed by

Following on from: https://enterprisedt.com/questions/index.php/12302/can-host-wrap-the-http-application-for-completeftp-elsewhere

I now have a 90% working version of the site from github, where redirects to index.jss are being forwarded from a front-end web server to the completeftp http services.

The download function however does not work, as the redirection enters a loop:

When accessing the filemanager fully hosted in CompleteFTP, the download function opens a popup, then proceeds to complete the action in that new window.

When I am forwarding requests, the window opens then a series of requests to a URL such as:

http://localhost:8080/FileManager/2/index.jss?download=/NewFolder/New+file.txt

...occurs. (localhost:8080 being my front end server)

This is proving hard to debug as I can't seem to get browser based debuggers to follow the popups.

Any help you can offer would be appreciated!

 

closed with the note: Problem due to specific implementation using IIS ARR and URL Rewrite
by (240 points)
Tracing Outbound rewrite:
OldUrl
/FileManager/2/index.jss?download=/NewFolder/New+file.txt

NewUrl
http://localhost:88/FileManager/2/index.jss?download=/NewFolder/New+file.txt

Return rewrite:

OldUrl
http://localhost:88/FileManager/2/index.jss?download=/NewFolder/New+file.txt

NewUrl
/FileManager/2/index.jss?download=/NewFolder/New+file.txt

Header getting set:
GENERAL_SET_RESPONSE_HEADER


HeaderName
Location

HeaderValue
http://localhost:8080/FileManager/2/index.jss?download=/NewFolder/New+file.txt

Replace
true

Response Headers:
Content-Length: 0
Content-Security-Policy: frame-ancestors 'self'
Content-Type: text/html
Date: Tue, 18 Dec 2018 15:36:55 GMT
Keep-Alive: timeout=20, max=400
Location: http://localhost:8080/FileManager/2/index.jss?download=/NewFolder/New+file.txt
Server: Microsoft-IIS/10.0
Strict-Transport-Security: max-age=31536000; includeSubdomains
X-Frame-Options: sameorigin
X-Powered-By: ARR/3.0, ASP.NET
X-XSS-Protection: 1; mode=block

Categories

...