]> code.delx.au - cgiproxy/blob - ruby/path.cgi
Make it clear that ruby1.8 is required
[cgiproxy] / ruby / path.cgi
1 #!/usr/bin/ruby1.8
2
3 require 'proxy.rb'
4 host = ENV["HTTP_HOST"]
5 case host
6 when "public.example.com"
7 host = "internal.example.com"
8 end
9 proxy_to "https://#{host}"
10