While the connectivity problem was being resolved we stood up a instance in EC2 running the following:
- Squid, for proxying requests from customers to our UI platform.
- Apache Traffic Server, for reverse proxying requests from customers to our search platform.
- vsftpd, for handling some content delivery.
Apache Traffic Server was as easy as:
yum install tcl-devel pcre-devel
tar -xf trafficserver-*.tar
Now I added this to the bottom of /usr/local/etc/trafficserver/remap.config:
map http://ec2_external_instances_name / http://orginal_url
and changed this string here /usr/local/etc/trafficserver/records.config:
CONFIG proxy.config.http.server_port INT 80
and then issued a
Job done. And don't forget to update the EC2 security group.