mirror of
https://github.com/webmin/webmin.git
synced 2026-06-05 21:00:22 +01:00
Turn off web directory indexes on web sock proxy and spoof 404 error on vnc.html
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="HTTP/1.1 404 Not Found">
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
||||
<title>Error response</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error response</h1>
|
||||
<p>Error code: 404</p>
|
||||
<p>Message: Not Found.</p>
|
||||
<p>Error code explanation: 404 - Nothing matches the given URI.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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 "<center>";
|
||||
|
||||
Reference in New Issue
Block a user