Advertisements

Dr. Ephemeron wrote:
>Sorry, if this seems like a simple problem, but I have:
>
>Mandrake 9.2
>Apache 2.0.47
>mod_ruby 1.0.7
>eruby 1.0.5
>
>mod_ruby is reported installed by Apache and I can make a test *.rhtml file
>in my html directory and it works fine.
>
>When put a *.rbx file in my cgi-bin directory and browse it with Mozilla
>1.4, it prints, but it prints everything in the file like this:
>
>HTTP/1.1 200 OK
>Content-type: text/html
>
><!DOCTYPE HTML PUBLIC ...
><html>
> <head>
> .
> .
> .
>
>It looks to me like it is probably an Apache setting that needs to be
>changed, but I can't figure out which one. I am new to all of this and
>struggling just to get it operational so I can learn more.
>
>Thanks
>
>
>
>
>
That's possible but more likely, in my experience, you need to make the
rbx file executable.

Well it's 755, so it is executable. And the print statements are working, so
it is executing... But it is not sending it as a HTML file, it's sending it
as a text file and the browser shows all the headers and tags in the print
statements. cgi.rb doesn't seem to work either when I include it.

Dr. Ephemeron wrote:
> mod_ruby is reported installed by Apache and I can make a test *.rhtml file
> in my html directory and it works fine.
>
> When put a *.rbx file in my cgi-bin directory and browse it with Mozilla
> 1.4, it prints, but it prints everything in the file like this:
>
> HTTP/1.1 200 OK
> Content-type: text/html
>
> <!DOCTYPE HTML PUBLIC ...

How does the relevant sections of your httpd.conf file look?

Do you have a "<Files *.rbx>" section that tells Apache to feed .rbx
files in the cgi directory to mod_ruby?

The config for one of my setups, where I use a separate directory for
all things .rb[x]-like is:

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!