Ruby 2 support master
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 6 Feb 2015 08:20:12 +0000 (19:20 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 6 Feb 2015 08:20:12 +0000 (19:20 +1100)
ruby/path.cgi

index 3d6cf29..842a603 100755 (executable)
@@ -1,10 +1,10 @@
-#!/usr/bin/ruby1.8
+#!/usr/bin/ruby
 
-require 'proxy.rb'
+require './proxy.rb'
 host = ENV["HTTP_HOST"]
 case host
 when "public.example.com"
-       host = "internal.example.com"
+    host = "internal.example.com"
 end
 proxy_to "https://#{host}"