Hi Peeps
Recently moved to using NGINX in front of Screenconnect in order to provide SSL.
We're on a Plesk server, which manages the Cert through LetsEncrypt, and also handles all the necessary redirect / rewrite stuff that would normally be required in the NGINX.Conf. The problem is that our root URI gives a 404 error from the Screenconnect web server, saying index.html does not exist.
Weird thing is, the system seems to be working OK, but only if you navigate directly to a URI such as
https://control.mydomain...#Support/All%20Sessions/It's just if you try to access
https://control.mydomain.co.uk/ you get:
System.Web.HttpException
The resource cannot be found.
Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: Requested URL: /index.html
Exception stack trace:
at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.DefaultHttpHandler.BeginProcessRequest (System.Web.HttpContext context, System.AsyncCallback callback, System.Object state) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator3.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
Version Information: 3.0.4 (master/c728710 Thu Jan 24 18:46:01 EST 2013); ASP.NET Version: 4.0.30319.17020
Here is my NGINX config:
location / {
proxy_pass
http://127.0.0.1:8040/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 180;
proxy_send_timeout 180;
proxy_read_timeout 90;
proxy_buffer_size 16k;
proxy_buffers 4 64k;
proxy_busy_buffers_size 128k;
proxy_temp_file_write_size 128k;
}
I've also tweaked web.config as below:
<add key="WebServerListenUri" value="http://127.0.0.1:8040/">
</add>
<add key="WebServerAddressableUri" value="https://control.mydomain.co.uk">
</add>
Any ideas?