Project

General

Profile

Ajaxterm » History » Revision 7

Revision 6 (achille, 2008-12-24 01:38) → Revision 7/9 (achille, 2008-12-24 01:39)

h1. Setting up Ajaxterm with Lighttpd 



 h2. Introduction 


 Ajaxterm is a web based terminal for Unix/Linux written in python. 



 h2. Installation 


 Ajaxterm can be downloaded on the "official homepage":http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm (open readme file for further steps) or installed using the package manager repositories of your distribution. 


 h2. Configuration for 1.4.* 


 '''/etc/lighttpd/lighttpd.conf''' 

 Make sure mod-proxy is loaded: 


 <pre> 

 server.modules = ( "mod_proxy" ) 
 </pre> 


 Configure module: 


 <pre> 

 proxy.server = ( "/ajaxterm/" => 
		 ( 
		  ( "host" => "127.0.0.1", 
		    "port" => 8022 
		  ) 
		 ) 
	        ) 
 </pre> 




 '''/etc/lighttpd/conf-available/10-proxy.conf''' 


 <pre> 

 #Your own proxy settings for ajaxterm 

 proxy.server 	 = ( "/cgi/ajaxterm/" => 
		    ( 
		     ( "host" => "127.0.0.1", 
		       "port" => 8022 
		      ) 
		     ) 
		    ) 
 </pre> 

 h2. Configuration for 1.5.* 

 '''/etc/lighttpd/lighttpd.conf''' 
 </pre> 
 Configure module: 
 <pre> 
 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" ) 
   } 
 </pre> 
 The regex for the url will redirect /terminal/ /term/ and /ajaxterm/ to the terminal 
 To only catch /ajaxterm/ change it to 
 <pre>$HTTP["url"] =~ "^/ajaxterm/" {</pre> "^/ajaxterm/"</pre> 

 h2. 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. 



 h2. See Also 


 [[lighttpd:Docs:SSL|SSL Documentation]]