Skip to content

Configure Locations

siedi edited this page Jan 4, 2016 · 2 revisions

It might be a little bit tricky in the beginning, at the end, it is not really difficult to understand. For the reference, read the official documentation.

Edit the file /var/www/webpagetest/www/settings/locations.ini. Mine looks like the one below. I have one private agent (chrome browser, running the node.js agent) and using some of the public agents, which you can access when you have requested an API key.

 [locations]
 1=Private_Jiffy
 2=Public_ec2-eu-west-1
 3=Public_ec2-eu-central-1
 default=Private_Jiffy

 [Private_Jiffy]
 1=Jiffy
 label=Jiffy Server
 group=Private

 [Public_ec2-eu-west-1]
 1=ec2-eu-west-1:Chrome
 2=ec2-eu-west-1:Firefox
 label="WebPagetest.org - ec2-eu-west-1"
 group=Public

 [Public_ec2-eu-central-1]
 1=ec2-eu-central-1:Chrome
 2=ec2-eu-central-1:Firefox
 label="WebPagetest.org - ec2-eu-central-1"
 group=Public

 [Jiffy]
 browser=Chrome
 label="Jiffy Chrome"

 [ec2-eu-west-1:Chrome]
 browser=Chrome
 label="WebPagetest.org ec2-eu-west-1:Chrome"
 relayServer="http://www.webpagetest.org/"
 relayKey=<your_api_key>
 relayLocation=ec2-eu-west-1:Chrome

 [ec2-eu-west-1:Firefox]
 browser=Firefox
 label="WebPagetest.org ec2-eu-west-1:Firefox"
 relayServer="http://www.webpagetest.org/"
 relayKey=<your_api_key>
 relayLocation=ec2-eu-west-1:Firefox

 [ec2-eu-central-1:Chrome]
 browser=Chrome
 label="WebPagetest.org ec2-eu-central-1:Chrome"
 relayServer="http://www.webpagetest.org/"
 relayKey=<your_api_key>
 relayLocation=ec2-eu-central-1:Chrome

 [ec2-eu-central-1:Firefox]
 browser=Firefox
 label="WebPagetest.org ec2-eu-central-1:Firefox"
 relayServer="http://www.webpagetest.org/"
 relayKey=<your_api_key>
 relayLocation=ec2-eu-central-1:Firefox

Your private agents will only appear, when they are running and have the same location name as in your config!

Reload your private WebPagetest website in the browser, they changes are available immediately (also when you stop/start your private agents).