Ajaxterm works, but I can't get correct settings :(


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ajaxterm works, but I can't get correct settings :(
# 1  
Old 06-29-2009
Data Ajaxterm works, but I can't get correct settings :(

Thank you for your time and help! Smilie Please if you could look over my settings and see what's going wrong.. I've read so much and tried soooo many things for 1 month now. 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


In case you don't know what Ajaxterm is: http://antony.lesuisse.org/software/ajaxterm/

I'm sure the problem lies in the configs putting into apache2. As Ajaxterm works on http://localhost:8022 & I don't get any errors when loading ajaxterm either. It also works if it reads from one vhost only.

The problem I am having if I make a new vhost file it will:
1) No matter what URL you enter it will show the AjaxTerm page/window
I'm sure this is because of this error: [warn] _default_ VirtualHost overlap on port 443, the first has precedence. < So it just ignores the other vhost settings.

If I add the configs to ssl file below existing configs
2) Ajaxterm won't work at all; if I go directly to it's path It produces a page with the top strip only of the ajaxterm window that says: Connection error status: 404

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


1st: the method of making a new file
(as per http://wiki.kartbuilding.net/index.php/Ajaxterm ) (this makes 'entire' site ajaxterm only):
pico /etc/apache2/sites-available/ajaxterm<note this file doesn't exist
In case it matters also note 'my.site' is replacing my actual domain which is in that format of my'.'site'.'org as it's a free dyndns domain

<VirtualHost *:80>
ServerName ajaxterm.my.site.org
Redirect 301 / https://ajaxterm.my.site.org
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
</VirtualHost>

<VirtualHost *:443>
ServerName ajaxterm.my.site.org
HostnameLookups Double
CustomLog /var/log/apache2/access.log combined env=!dontlog
SetEnvIf Request_URI "^/u" dontlog
ErrorLog /var/log/apache2/error.log
Loglevel warn
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

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

Then I:
a2ensite ajaxterm
/etc/init.d/apache2 reload

reply I get is: Reloading web server config: apache2 [warn] _default_ VirtualHost overlap on port 443, the first has precedence
and in apache2 error logs:
[warn] Init: SSL server IP/port conflict:ajaxterm.my.site.org:443 (/etc/apache2/sites-enabled/ajaxterm:8) vs. my.site.org:443 (/etc/apache2/sites-enabled/ssl:2)
line 8 would be: <VirtualHost *:443> line 2 would be: <VirtualHost *:443>


2nd method after removing the above, adding to my existing ssl file (this makes ajaxterm not work at all):
pico /etc/apache2/sites-enabled/ssl

This is my entire file with configs for ajaxterm as the 2nd virtual host configs (as per http://wiki.kartbuilding.net/index.php/Ajaxterm ):

NameVirtualHost *:443

<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName my.site.org

DocumentRoot /var/www/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

<Directory />
Options None
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
AuthUserFile /etc/apache2/.htpasswd
AuthGroupFile /dev/null
AuthName "Authorization Required"
AuthType Basic
require user myname
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options -Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName ajaxterm.my.site.org
Redirect 301 / https://ajaxterm.mysite.org
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
</VirtualHost>


<VirtualHost *:443>
ServerName ajaxterm.my.site.org
HostnameLookups Double
CustomLog /var/log/apache2/access.log combined env=!dontlog
SetEnvIf Request_URI "^/u" dontlog
ErrorLog /var/log/apache2/error.log
Loglevel warn
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

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

I have also tried copy over ajaxterm dir to /www/ and with (as per http://bobcares.com/index.php/blog/?p=120):
<virtualhost *:443>
ServerName localhost
SSLEngine On
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
SSLCertificateFile /etc/apache2/ssl/apache.pem

ProxyRequests Off
<proxy *>
AuthType Basic
AuthName "remote Shell Access"
AuthUserFile /etc/apache2/.htpasswd
Require user myname
Order deny,allow
Allow from all
</proxy>
ProxyPass /ajaxterm/ http://my.site.org:8022/
ProxyPassReverse /ajaxterm/ http://my.site.org:8022/
</virtualhost>
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Help with firewall settings

Hi all, I am confusing myself with trying to set up a firewall and hope someone here can help me progress. I have a small cluster of three Raspberry PI's running NOOBS, which I believe is a Debian fork. I have a "Gateway" machine, if that is the right phrase, that has a USB Wifi dongle... (0 Replies)
Discussion started by: steadyonabix
0 Replies

2. Shell Programming and Scripting

Not the correct output, works fine via CLI, not inside the script.

Guys, I need you help please. The script below is not working correclty for checking via a awk/if statement . Can you tell me what i am doing wrong in the script code "if($1 == "$RETENTION_LEVEL") " Syntax RETENTION_LEVEL=`echo $LINE | cut -f2 -d" "` echo " ==============... (4 Replies)
Discussion started by: Junes
4 Replies

3. OS X (Apple)

AjaxTerm wont work on Mac OS X

just downloaded Ajaxterm-0.10 on my Mac 10.5.8 and after a ./ajaxterm.py i get: AjaxTerm at http://localhost:8022/ which looks ok but as soon i go to the website: ./ajaxterm.py:418: DeprecationWarning: 'I' format requires 0 <= number <= 4294967295 fcntl.ioctl(fd,... (0 Replies)
Discussion started by: berot3
0 Replies

4. UNIX for Dummies Questions & Answers

Create some settings

Hi, I've installed mysql and apache servers and made it run in my company's production server. Now what I want to be done is for a notification to be sent to my mail when the servers (mysql and apache) are stopped and not running. Please help me on doing this. Tqs. (3 Replies)
Discussion started by: anaigini45
3 Replies

5. Web Development

Ajaxterm in a website on apache

Hi All, I'm trying to get ajaxterm hosted on a website. The site is already running. I just want to add ajaxterm link to it with SSL of course. So far I've not been successful. I kinda got it running but with out SSL. Not good enough! Also, I already have configured SSL and I can access some... (0 Replies)
Discussion started by: nitin
0 Replies

6. UNIX for Dummies Questions & Answers

help configuring Ajaxterm

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use :http://localhost:8022/ in my broswer. This is the problem , it can only be accessed localy. If I want to access it through internet from another computer, it fails. I've read the tutorials on how to... (1 Reply)
Discussion started by: wosis
1 Replies

7. UNIX for Dummies Questions & Answers

problem configuring Ajaxterm

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser it works. The problem is that I wanted to be able to access it from somewhere else through the internet. I've read all the documentation and help that is available for... (1 Reply)
Discussion started by: wosis
1 Replies

8. Solaris

PAM settings.

Hi Experts, Appended is the pam.conf file in my Sol 5.10 client which uses AD for authentication(Followed scott Lowe's blog on AD-Solaris integration): bash-3.00# cat /etc/pam.conf ##ident "@(#)pam.conf 1.31 07/12/07 SMI" # Copyright 2007 Sun Microsystems, Inc. All rights reserved.... (9 Replies)
Discussion started by: Hari_Ganesh
9 Replies

9. Linux

Ip settings

Hi, How to set ip address in linux. Regards, Guguli (1 Reply)
Discussion started by: guguli
1 Replies

10. UNIX for Advanced & Expert Users

.profile settings

I need to configure my .profile so that it should always reflect my present directory path during my session. How can i do that. Please help (1 Reply)
Discussion started by: satgur
1 Replies
Login or Register to Ask a Question