[ILUG] ajaxterm
Timothy Murphy
tim at birdsnest.maths.tcd.ie
Fri Aug 10 22:55:54 IST 2007
On Fri 10 Aug 2007, Stephen Burke wrote:
> In a <VirtualHost *:443>, the following entries were added (among the
> basic others):
> CustomLog /var/log/apache2/access.log combined env=!dontlog
> SetEnvIf Request_URI "^/u" dontlog
> ErrorLog /var/log/apache2/error.log
> <Proxy *>
> AuthUserFile /srv/ajaxterm/.htpasswd
> AuthName EnterPassword
> AuthType Basic
> require valid-user
>
> Order Deny,allow
> Allow from all
> </Proxy>
> ProxyPass / http://localhost:8022/
> ProxyPassReverse / http://localhost:8022/
Sadly this did not work for me.
I'm running Fedora 7, and created /etc/httpd/conf.d/ajaxterm.conf
(based on your script) reading:
------------------------------------------------------------
<VirtualHost *:443>
CustomLog /var/log/httpd/access.log combined env=!dontlog
SetEnvIf Request_URI "^/u" dontlog
ErrorLog /var/log/httpd/error.log
<Proxy *>
AuthUserFile /srv/ajaxterm/.htpasswd
AuthName EnterPassword
AuthType Basic
require valid-user
Order Deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8022/
ProxyPassReverse / http://localhost:8022/
</VirtualHost>
------------------------------------------------------------
[I'm not sure what the AuthUserFile line means.]
But when I restart httpd and try to run ajaxterm.py I get the error message:
------------------------------------------------------------
[root at alfred Ajaxterm-0.10]# ./ajaxterm.py
AjaxTerm at http://localhost:8022/
Traceback (most recent call last):
File "./ajaxterm.py", line 566, in <module>
main()
File "./ajaxterm.py", line 560, in main
qweb.QWebWSGIServer(at,ip='localhost',port=int(o.port),threaded=0,log=o.log).serve_forever()
File "/www/Ajaxterm-0.10/qweb.py", line 1309, in __init__
BaseHTTPServer.HTTPServer.__init__(self, (ip, port), QWebWSGIHandler)
File "/usr/lib/python2.5/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 101, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.5/SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')
------------------------------------------------------------
Line 560 of ajaxterm.py reads
qweb.QWebWSGIServer(at,ip='localhost',port=int(o.port),threaded=0,log=o.log).serve_forever()
I've tried mindterm and ajaxterm without success,
so now I'm going back to anyterm ...
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
More information about the ILUG
mailing list