ESI Exercise Using Akamai ETS server
ESI Reading and Reference Material
Steps for installation and running ESI Test Server (ETS)
- Create esi directory under your public_html/cs526 directory.
- Go to the http://developer.akamai.com/esi_resources.html
web site and download the Linux Version of the ETS server. The Linux Version
downloaded file is 'ETS_1.1Beta1_Linux.tar.gz'
- Extract the installation files use
'tar xzvf ETS_1.1Beta1_Linux.tar.gz' in your esi directory.
- Use the following when install and configure your ETS. Type "./install"
to run the installation script.
- Install ETS on in your /users/server/students/<login>/public_html/esi/ETS/
directory
- choose the port 8<last3dgits of your SS#> to run your ETS server.
- set cs.uccs.edu to be your original server, port 80.
- turn on ESI Debugging
- Congigure GEO settings? n
- a to accept the host's settings.
- n to add a Original Host?
- i to install ETS
- y to start the ETS server
- Confirm to start the ETS if you are ready to run it.
- In the $ESI/conf/httpd.conf you will find it load the esi module.
- LoadModule esi_module libexec/mod_esi.so
- Run the ETS on your designated machine similar to the homework#2.
- The $ESI/bin contains the apachectl script. You can use it to start, stop,
restart the ETS.
e.g., "apachectl start" to start the ETS server.
- To use the ETC server, you need to set the browser to use the ETS server.
Select Tools | intenet options
Select Connections tab and LAN Settings
Check "Use a proxy server ..." option. Enter "sanluis.uccs.edu"
in Address field and "8<last3digits of your SS#>" in Port
field.
Click OK.
ESI Web pages
- I have created a web page for testing the esi tags at http://cs.uccs.edu/~cs526/esi/esipages/esichoose.html
which referesh every 5 seconds using <meta http-equiv="Refresh"
content="5; URL="esichoose.html">
- esichoose.html contains the esi:choose, esi:include, esi:when, esi:otherwise
tags.
It will display a different title if the request is from 128.198.172.158.
- You can change that to the IP adddress of your machine for testing this
customization feature.
- esichoose.html reference the fragments of web pages at http://cs.uccs.edu/~cs526/esi/orgserver/
- pagechange.pl in ~cs526/esi/orgserver can be run to change the content of
color.html and runningText.html
<esi:choose>
<esi:when test="$(REMOTE_ADDR) =='128.198.172.158'">
<esi:include src="http://cs.uccs.edu/~cs526/esi/orgserver/viptitle.html"/>
</esi:when>
<esi:otherwise>
<esi:include src="http://cs.uccs.edu/~cs526/esi/orgserver/titlepage.html"/>
</esi:otherwise>
</esi:choose>
<table>
<tr>
<esi:include src="http://cs.uccs.edu/~cs526/esi/orgserver/color.html"
ttl="5s"/>
<esi:include src="http://cs.uccs.edu/~cs526/esi/orgserver/runningText.html"
ttl="10s"/> </tr>
</table>