Table Of Contents

Previous topic

RubyGems

Next topic

Rack

This Page

Phusion Passenger

Rails

Rack

$ mkdir hello
$ cd hello
$ mkdir tmp # required
$ mkdir public # required
$ vi config.ru # required

hello/config.ru

class App
  def call(env)
    [200, {'content-type'=>'text/html'}, "hello"]
  end
end

run App.new

sub URI

::
# ln -s /path/to/rack_app/public /apache/document/root/rack

hello/public/.htaccess

::
RackBaseURI /rack
inserted by FC2 system