habe versucht Ajaxterm über lighttpd per Internetverbindung zwischen entferntem Webserver und lokalem Browser zum Laufen zu bekommen. Leider sehe ich im Browser nichts was nach Ajaxterm aussieht. Wenn ich mir den Quellcode der "leeren" Seite nach dem Aufruf von
anschaue kommt:
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Ajaxterm</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="ajaxterm.css"/>
<script type="text/javascript" src="sarissa.js"></script>
<script type="text/javascript" src="sarissa_dhtml.js"></script>
<script type="text/javascript" src="ajaxterm.js"></script>
<script type="text/javascript" src="ajaxterm_config.js"></script>
<script type="text/javascript" src="utf8-escape.js"></script>
<script type="text/javascript">
window.onload=function() {
t=ajaxterm.Terminal("term",width,height);
};
</script>
</head>
<body>
<div id="term"></div>
</body>
</html>
Code: Alles auswählen
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
Würde erst mal sagen, dass da irgend etwas bezüglich ajaxterm passieren sollte, wohl noch etwas in der lighttpd Konfiguration nicht passt...
Auf github ajaxterm sind folgende Hinweise gegeben:
Ich denke, dass ich "ProxyPass" und "ProxyPassReverse" in lighttpd nicht richtig umgesetzt habe.* Ajaxterm only support latin1, if you use Ubuntu or any LANG==en_US.UTF-8
distribution don't forget to "unset LANG".
* If run as root ajaxterm will run /bin/login, otherwise it will run ssh
localhost. To use an other command use the -c option.
* By default Ajaxterm only listen at 127.0.0.1:8022. For remote access, it is
strongly recommended to use '''https SSL/TLS''', and that is simple to
configure if you use the apache web server using mod_proxy.[[BR]][[BR]]
Using ssl will also speed up ajaxterm (probably because of keepalive).[[BR]][[BR]]
Here is an configuration example:
Listen 443
NameVirtualHost *:443
<VirtualHost *:443>
ServerName localhost
SSLEngine On
SSLCertificateKeyFile ssl/apache.pem
SSLCertificateFile ssl/apache.pem
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /ajaxterm/ http://localhost:8022/
ProxyPassReverse /ajaxterm/ http://localhost:8022/
</VirtualHost>
* Using GET HTTP request seems to speed up ajaxterm, just click on GET in the
interface, but be warned that your keystrokes might be loggued (by apache or
any proxy). I usually enable it after the login.
https://redmine.lighttpd.net/projects/l ... s_ModProxy
Über Tipps und Hinweise wäre ich dankbar.
Gruß und Dank Markus
2019-04-08:
Bin einen Schritt weiter.
Sind nun im Browser verfügbar.<link rel="stylesheet" type="text/css" href="ajaxterm.css"/>
<script type="text/javascript" src="ajaxterm.js"></script>
<script type="text/javascript" src="ajaxterm_config.js"></script>
noch nicht. Wäre über Tipps wirklich dankbar.< <script type="text/javascript" src="sarissa.js"></script>
<script type="text/javascript" src="sarissa_dhtml.js"></script>
<script type="text/javascript" src="utf8-escape.js"></script>
Gruß Markus