Mew wosis.. I'm also having such a hard time. Maybe together this can be solved
. I've tried posting on other forums as well with no replies so far. Paws crossed for us
I'm running: Linux Debian / apache2-mpm-prefork 2.2.9-10+lenny2
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at ********* Port 80
I just can not get this to work via browser:
"The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try again."
Please if anyone can help or point to a place that can, thank you. Almost 2 weeks trying my best to solve this and just can't figure it out. I followed this
https://help.ubuntu.com/community/AjaxTerm plus all sorts of other fixes I have read. I first tried the wget method using readme.txt and that was even more unsuccessful.
These are the steps I have done:
a2enmod proxy_http
apt-get install ajaxterm
/etc/init.d/ajaxterm start
It replied: Starting web based terminal: ajaxterm
pico /etc/ssh/ssh_config
//uncomment: PasswordAuthentication yes
cd /
mkdir /srv/ajaxterm
cd /srv/ajaxterm
htpasswd -cm /srv/ajaxterm/.htpasswd MyName
typed in pass...
pico /etc/apache2/sites-enabled/ssl
This section had this:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
<Directory />
Changed it to:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
SetEnvIf Request_URI "^/u" dontlog
ErrorLog /var/log/apache2/error.log
Loglevel warn
ProxyRequests Off
<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/
<Directory />
/etc/init.d/apache2 reload
loaded fine...
/etc/init.d/ajaxterm start
I try going to:
https://mysite.com:8022 and get error: The connection to the server was reset while the page was loading.
I do this: netstat -antp
I think this is the ajaxterm that on the list:
tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN 25926/python
When I do cmd: ps x , I don't see it on the list of processes running, but I see many of these nmbd things that I don't think I saw before:
13587 ? Ss 0:07 /usr/sbin/nmbd -D
13589 ? Ss 0:08 /usr/sbin/smbd -D
13590 ? S 0:00 /usr/sbin/smbd -D
5333 ? S 0:00 [pdflush]
14779 ? S 0:00 /usr/sbin/smbd -D
25819 ? S 0:00 /usr/sbin/smbd -D
26146 ? S 0:00 /usr/sbin/smbd -D
26344 ? S 0:00 /usr/sbin/smbd -D
When I issue the cmd:
ajaxterm
Reply I get is:
AjaxTerm at
http://localhost:8022/
Traceback (most recent call last):
File "/usr/share/ajaxterm/ajaxterm.py", line 571, in <module>
main()
File "/usr/share/ajaxterm/ajaxterm.py", line 565, in main
qweb.QWebWSGIServer(at,ip='localhost',port=int(o.port),threaded=0,log=o.log).serve_forever()
File "/usr/share/ajaxterm/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')
And then I'm just left in this blank window... that I don't know how to quit.
----------
I read to do this:
wget -O- -np https://localhost:8022
The reply I got was:
--2009-06-07 18:34:03--
https://localhost:8022/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8022... connected.
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Unable to establish SSL connection.
I see in my /var/log/apache2/error.log
[Sun Jun 07 18:16:44 2009] [notice] mod_python: Creating 8 session mutexes based on 50 max processes and 0 max threads.
[Sun Jun 07 18:16:44 2009] [notice] mod_python: using mutex_directory /tmp
[Sun Jun 07 18:16:45 2009] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
Also I noticed:
1.) That when I go to any URL on my site it brings me to the AjaxTerm login page! It seems the entire site has been redirected to the AjaxTerm.
2.) Furthermore I only got that to load when after several attempts of trying my normal name/pass for the site didn't work I thought to try the pass I set for AjaxTerm in steps above.. that worked.
3.) And when I do try to login to the AjaxTerm window I type in name, hit enter, it returns back to Login. Never ask for pass.. as if login name isn't correct..
4.) when I do: netstat -antp Instead of just one listing on port 8022 there are now many:
tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN 25926/python
tcp 0 0 127.0.0.1:8022 127.0.0.1:4991 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4990 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4989 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4988 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4987 TIME_WAIT -
tcp 0 0 127.0.0.1:4992 127.0.0.1:8022 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1032 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1031 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1030 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4998 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1029 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4997 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1028 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4996 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1027 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4995 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1026 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4994 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1025 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:4993 TIME_WAIT -
tcp 0 0 127.0.0.1:8022 127.0.0.1:1024 TIME_WAIT -
And many listings with server ip on port 443
5.) I do this: /etc/init.d/ajaxterm stop
It replied: Stopping web based terminal: ajaxterm.
& then: /etc/init.d/apache2 reload
Entire site is still redirected to the AjaxTerm page
Though I still have error when I try to go
http://mysite.com:8022
I've commented/hashed the new entries on pico /etc/apache2/sites-enabled/ssl and my site is working again. (still a ton of strange entries under netstat -antp)
So question is not only to get that to work
but to get it stop redirecting entire site to it.
Thank you so much for your time!