[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Can't get Apache2 to i interpret my ruby file

Daniel Sheppard

2/1/2007 6:19:00 AM

http://httpd.apache.org/docs/1.3/howt...

> -----Original Message-----
> From: laredotornado@zipmail.com [mailto:laredotornado@zipmail.com]
> Sent: Thursday, 1 February 2007 3:55 PM
> To: ruby-talk ML
> Subject: Can't get Apache2 to i interpret my ruby file
>
> Hi,
>
> I have Apache 2.2 installed on my Fedora Core 5 Linux machine. I
> created this file, "test.rb" at my public document root
>
> #!/usr/local/bin/ruby
> print "Content-type: text/html\r\n\r\n"
> print "<html><body>Hello everybody!!!!</body></html>\r\n"
>
> and when i visit http://mydomain.c..., the output is
>
> #!/usr/local/bin/ruby
> print "Content-type: text/html\r\n\r\n"
> print "<html><body>Hello SAm and Lisa!!!!</body></html>\r\n"
>
> That's right, it's just the same file. So my question is, what
> directives to I need to add to my "httpd.conf" file to make this file
> interpret? I am surprised by how little documentation there is on how
> to do this.
>
> Thanks, - Dave
>
>
>

1 Answer

Phillip Gawlowski

2/1/2007 11:04:00 AM

0

Daniel Sheppard wrote:
> http://httpd.apache.org/docs/1.3/howt...


Better use this one:
http://httpd.apache.org/docs/2.0/howt...


--
Over by the window lie the raiment and the weapons
That we need to take into this world today
Armoured by opinion, with statistic and schoolboy's charm
We take our place amongst the rank and file

Skyclad - A Survival Campaign