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

/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
		     )
		    )
		   )

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

SSL Documentation