I have an app that has a htdocs folder with static files and a couple of CGI scripts on the httpd/cgi-bin folder. How can I use Rack with config.ru to serve this application?
My current config.ru:
map "/check" do
What here ("httpd/cgi-bin/check_wrapper.sh")
end
run Rack::Directory.new("htdocs")
You can use the backticks to run the command and grab the output.