Tom de Grunt
2007-09-10 17:28:17 UTC
Hello,
I'm looking for some help. We're using Apache2 and mod_ruby and
basically wrote a simple dispatcher, which is in essence not more than:
module Test
class Dispatcher
include Singleton
def handler(request)
end
end
end
In the handler method I'm trying to read the raw post body as well as
the request parameters.
So far I've found no clean way to do this. Does somebody have any
suggestions?
Regards,
Tom.
PS. This is the Apache2 configuration:
AliasMatch ^/test(/.*)?$ "/data/test/htdocs$1"
<Directory "/data/test/htdocs">
<FilesMatch "\.(rhtml|rhtmlx)">
SetHandler ruby-object
RubyHandler Test::Dispatcher.instance
RubyOption config /data/test/ruby/config.yml
RubyOption name test
</FilesMatch>
</Directory>
I'm looking for some help. We're using Apache2 and mod_ruby and
basically wrote a simple dispatcher, which is in essence not more than:
module Test
class Dispatcher
include Singleton
def handler(request)
end
end
end
In the handler method I'm trying to read the raw post body as well as
the request parameters.
So far I've found no clean way to do this. Does somebody have any
suggestions?
Regards,
Tom.
PS. This is the Apache2 configuration:
AliasMatch ^/test(/.*)?$ "/data/test/htdocs$1"
<Directory "/data/test/htdocs">
<FilesMatch "\.(rhtml|rhtmlx)">
SetHandler ruby-object
RubyHandler Test::Dispatcher.instance
RubyOption config /data/test/ruby/config.yml
RubyOption name test
</FilesMatch>
</Directory>