Skip to content

You don’t have permission to access /ajaxterm/ on this server…

Since I am the only person on earth to have ever received this error message, I thought I had better blog about it.

I’ve been playing with AJAXTerm, which could potentially be very useful. It’s a web-app that takes HTTP requests, and pipes them through to SSH. In short, you could log on to an SSL-secured webpage, and get console access to the server. Handy.

There’s a short install guide on the AJAXTerm website, but it’s missing a couple of steps (which are probably obvious to a mad-L337 Apache expert). If, after making the suggested Apache config file changes Apache whinges about not understanding the “Proxy” directives, or throws up this error in its error log:

[warn] proxy: No protocol handler was valid for the URL /ajaxterm/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

…you can solve the problem with these two commands:

sudo a2enmod proxy
sudo a2enmod proxy_http

AJAXTerm requires two Apache modules: Proxy and Proxy_HTTP; you can install these using a2enmod. If Apache doesn’t have Proxy, it’ll complain about not understanding the “Proxy” commands; if Proxy_HTTP isn’t in place, you’ll get the “You don’t have permission to access /ajaxterm/ on this server” error in your browser, and “protocol handler” errors in Apache’s error log.

Now, if I can just get AJAXTerm pointed at ssh rather than /bin/login

Post a Comment

You must be logged in to post a comment.