question

KarlAlois-9587 avatar image
0 Votes"
KarlAlois-9587 asked BruceZhang-MSFT commented

HTTPS redirect using ARR for non IIS hosted site

Does HTTPS redirection work at all using IIS-ARR to a non-IIS hosted web site?

I am running a 4D Developer Pro Database on a Windows Server 2012 R2 which has a unique DNS-Name.
For HTTP redirection In the past I have used a reverse proxy using the IIS ARR Server Proxy Settings and a URL Rewrite Rule redirecting to my local 4D-port with the main server selected.
This is working fine.
Now I wanted to add HTTPS access again with a reverse proxy.
First I made sure that public HTTPS access was working with the SSL-certificate + private key installed in the 4D Developer Pro Database.
Next I disabled public access and tried to get the IIS-ARR-reverse proxy working by adding another URL Rewrite Rule using the condition {HTTPS}=on then redirect to my local SSL Port of the 4D Developer Pro Database.
I could n*strong text*ot get this to work.
Next I converted and imported the 4D- SSL-certificate to IIS and checked the "Enable SSL offloading" checkbox in the ARR Server Proxy Settings. But then I did not know how to bind the SSL-certificate to the server.
So I simply selected the Default Web Site instead of the Server machine which then allowed me to click on Bindings and enter https with my imported SSL-certificate. With the Default Web Site selected I also added a URL-Rewrite Rule to redirect HTTP to my local 4D-port.
But this also did not work.

Does HTTPS redirection work at all using IIS-ARR to a non-IIS hosted web site?

windows-server-iiswindows-server-2012
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @KarlAlois-9587 ,

IIS-ARR can be used and work to a non-IIS hosted web site. Some users just use IIS-ARR as a reverse proxy server without hosting any applications. If your ARR rule cannot work, please use failed request tracing to trouble shoot rewrite rule. If it works well, most likely the problem is 4D Developer Pro Database on a Windows Server 2012 R2 or any other.


0 Votes 0 ·

thanks Bruce, I will try that next. What is puzzling me, though, is that my working HTTP reverse proxy will stop working, if I do not have the correct "reverse proxy" including Port entered in the respective form field in the ARR- "server proxy settings" -form. I thought that this field was optional and that the reverse proxy is purely determined by the Action entry in the URL-Rewrite Rule?

0 Votes 0 ·

Hi @KarlAlois-9587 ,

No. From this docs. You will find that if IIS is used as a reverse proxy, you must check Enable proxy in the reverse proxy form. No other changes are required. Otherwise, all URL rewriting will only happen in the current domain. Even if you enter other domains in the Action, the request will not be rewritten to other domains. At this time, the CORS problem occurred.


0 Votes 0 ·

0 Answers