LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ajaxterm

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell