From 40d42664dd052d96b3b18a791ef76a9055e04f90 Mon Sep 17 00:00:00 2001 From: Barry Nelson Date: Thu, 6 Feb 2025 12:42:39 -0500 Subject: [PATCH] Turn off web directory indexes on web sock proxy and spoof 404 error on vnc.html --- vnc/empty/vnc.html | 15 +++++++++++++++ vnc/index.cgi | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/vnc/empty/vnc.html b/vnc/empty/vnc.html index e69de29bb..18ae08f22 100644 --- a/vnc/empty/vnc.html +++ b/vnc/empty/vnc.html @@ -0,0 +1,15 @@ + + + + + + Error response + + +

Error response

+

Error code: 404

+

Message: Not Found.

+

Error code explanation: 404 - Nothing matches the given URI.

+ + diff --git a/vnc/index.cgi b/vnc/index.cgi index 1f1331780..8892476da 100644 --- a/vnc/index.cgi +++ b/vnc/index.cgi @@ -93,7 +93,7 @@ if ($config{'program'}) { # Proxy server not listening on the specfied address and port # Need to run ./utils/novnc_proxy --vnc $addr:5900 --ssl-only --listen $addr:$port if ($err) { - system("./utils/novnc_proxy --cert /etc/webmin/miniserv.pem --vnc 127.0.0.1:5900 --ssl-only --listen $addr:$port --web empty >/dev/null 2>&1 &"); + system("./utils/novnc_proxy --cert /etc/webmin/miniserv.pem --vnc 127.0.0.1:5900 --ssl-only --file-only --listen $addr:$port --web empty >/dev/null 2>&1 &"); } print "
";