added mechansim to specify scheme and secure in server.xml.erb