Guang-Nan Cheng <[email protected]> wrote:
> For example, I have a webapp that handles /welcome.
> 
> Does unicorn support to mount the entire webapp at /prefix so request
> to /prefix/welcome are handled?

Yes, all Rack servers that support rackup (config.ru) files can do it:

  map "/prefix" do
    use Rack::Chunked
    run WelcomeApp.new
  end
  # ...
  map "/lobster" do
    use Rack::Lint
    run Rack::Lobster.new
  end
  # You can do virtual hosts, too:
  map "http://example.com/"; do
    run ExampleApp.new
  end

See the Rack::Builder and Rack::URLMap RDoc for more info.

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to