]> code.delx.au - cgiproxy/blob - ruby/path.cgi
Ruby 2 support
[cgiproxy] / ruby / path.cgi
1 #!/usr/bin/ruby
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