Closed GoogleCodeExporter closed 9 years ago
Your example works for me with different interpreter line:
$ cat a.rb
#!/usr/bin/env ruby
print "HTTP/1.1 200 OK\r\n"
print "Content-type: text/html\r\n\r\n";
print "<html><body>Hello World!</body></html>\r\n\r\n"
$ chmod 755 a.rb
$ mongoose -cgi_pattern **.rb$
I can see hello world message.
Please make sure you can run your script from shell, i.e.
$ ./a.rb
I should not give any error.
Original comment by valenok
on 9 May 2012 at 9:14
Original comment by valenok
on 6 Jun 2012 at 6:05
I've been away on contract and haven't had much free time. I'll try your
recommendation and get back to you within one week.
Original comment by ananon...@gmail.com
on 6 Jun 2012 at 5:31
According to the error log, I am getting an internal server error, yet the access log shows a successful response (Code 200 - OK).
Let me step back a bit -- I've done a lot of searching of the internet in order to resolve these problems. I'm not thoroughly convinced that anyone has ever used Ruby with Mongoose. As such, I am curious to know if anyone reading this message has ever been successful using these two technologies combined. I'm about to abandon Ruby for PHP, but I'd prefer not because I find Ruby much more powerful.
Any suggestions would be helpful. Thank you! -Andy