httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fedora <>
Subject [users@httpd] Making apache ready for ruby ajax responder
Date Tue, 25 Jan 2011 13:38:13 GMT
Hi listers
Sofar, i found out, that an ajax responder cannot be in the cgi-bin 
directory, because, apparently, apache from this directory expects other 
headers and contents than usual ajax resonders send. That means, 
whenever i try to put an ajax responder into the cgi-bin directory, i 
get a 500 Internal Server Error reply to an ajax request.

Next i found this: When i put a ruby program into any directory of the 
current virtual-web (except into the cgi-bin directory), when i try to 
invoke it from the browser, i get the ruby text as response. That is not 
what i want.

Next i found this: When i put a php program into any directory of the 
current virtual-web (except into the cgi-bin directory) and i invoke it 
from the browser via ajax call, it replies as expected. i want to have 
this behaviour from a ruby script as well.

Next i found this: When i try to add a handler for ruby scripts in any 
directory (except the cgi-bin directory) of the virtual host, like so
<Directory /home/svn/work/test/>
   Action application/x-ruby /usr/bin/ruby
   AddHandler application/x-ruby .rbx
i get the following, when ivoking the ruby program klixe.rbx in this 
directory via ajax call:

<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL /usr/bin/ruby/test/klixe.rbx was not found on this 
<address>Apache/2.2.16 (Fedora) Server at dick.dyn.lan Port 80</address>

which is to say, that apache concatenates the relativ URL of the file i 
want to invoke with the handler-path, which certainly does not provide 
the response i want.

Where am i wrong? what do i miss?

Thanx for any helpx


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message