Using Virtual Hosts on OSX to preview your site

From time to time, we might ask you to set up virtual hosts on your machine, so you can see the site before the world can. 

We 'trick' your browser into seeing the new site, while the rest of the world is still looking at the old one! It takes just a few minutes to do. 

On  OSX (Apple Mac) do this with the following steps:
1. Launch Terminal (find it using Spotlight search)
2. Copy/paste the following, and ENTER:
sudo nano /etc/hosts

3. Enter your OSX password

4. Copy/paste the line(s) given to you by Performance Foundry to the top of the file. You may need to hit "enter" to drop the ## to the next line. They'll look something like this:
### Virtual hosts ### XXX.XXX.XXX.XXX or like this:XXX.XXX.XXX.XXX

5. To save, hit CTRL + X
6. Hit Y
7. Hit ENTER

This should bring you back to where you started... the initial Terminal window with a cursor.

8. Type the following, and ENTER:
dscacheutil -flushcache

Still need help? Contact Us Contact Us