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
cd /tmp
wget http://mirror.lividpenguin.com/pub/apache//trafficserver/trafficserver-*.tar.bz2
bunzip2 trafficserver-*.tar.bz2
tar -xf trafficserver-*.tar
cd trafficserver-*
./configure
make
make install
trafficserver start
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
trafficserver restart
Job done. And don't forget to update the EC2 security group.