Ajaxterm » History » Revision 6
« Previous |
Revision 6/9
(diff)
| Next »
achille, 2008-12-24 01:38
Setting up Ajaxterm with Lighttpd¶
Introduction¶
Ajaxterm is a web based terminal for Unix/Linux written in python.
Installation¶
Ajaxterm can be downloaded on the official homepage (open readme file for further steps) or installed using the package manager repositories of your distribution.
Configuration for 1.4.*¶
'''/etc/lighttpd/lighttpd.conf'''
Make sure mod-proxy is loaded:
server.modules = ( "mod_proxy" )
Configure module:
proxy.server = ( "/ajaxterm/" => ( ( "host" => "127.0.0.1", "port" => 8022 ) ) )
'''/etc/lighttpd/conf-available/10-proxy.conf'''
#Your own proxy settings for ajaxterm proxy.server = ( "/cgi/ajaxterm/" => ( ( "host" => "127.0.0.1", "port" => 8022 ) ) )
Configuration for 1.5.*¶
'''/etc/lighttpd/lighttpd.conf'''
Configure module:
server.modules += ( "mod_proxy_backend_http" ) $HTTP["url"] =~ "^/terminal/|^/term/|^/ajaxterm/" { proxy-core.protocol = "http" proxy-core.balancer = "static" proxy-core.backends = ("127.0.0.1:8022" ) }
The regex for the url will redirect /terminal/ /term/ and /ajaxterm/ to the terminal
To only catch /ajaxterm/ change it to
$HTTP["url"] =~ "^/ajaxterm/"
Files¶
Finally copy all files from the downloaded package (as described in the readme) or from ''/usr/share/ajaxterm/'' (if installed via aptitude etc) to ''/YourWebRoot/ajaxterm/''. Point your browser to http://yoursite/ajaxterm/ and login. Better use SSL for security reasons.
See Also¶
Updated by achille about 16 years ago · 9 revisions