Test the Image Serving upgrade
Replace hostname.scene7.com, with the applicable domain used on your website.
Replace hostname.scene7.com referred to below, with the applicable domain used on your website.
Replace [IP] with the IP address of the staging server, applicable to your region.
- North America: 130.248.148.148
- EMEA: 192.243.254.7
- APAC: 63.140.45.139
Windows
- Edit the Host or Hosts file using Notepad (on most Windows computers, it is located in the C:\WINDOWS\system32\drivers\etc folder). Note: on some Windows computers, the file is in the \WinNT\system32\drivers\etc folder. The file is named Hosts – with no filename extension. If your computer has no Hosts file, start Notepad with a blank file.
Windows 7 Users: To edit the host file, Click Start – search for “Notepad," right-click and select “Run as Administrator." Now, open the host file from the File menu, edit, and save. Add this line as the first line in the file:- IP hostname.scene7.com (example: 10.11.12.13 images.mycompany.com)
Do not change any of the other lines in this file (if any). Save it- making sure that it does not save with a .TXT filename extension. From Notepad, choose File > Save As, then set Save as Type to All Files. Ensure that the filename is simply Hosts, and then save it.
- IP hostname.scene7.com (example: 10.11.12.13 images.mycompany.com)
- The changes take effect immediately. If not, restart your computer, then test it out. Note: if you want to avoid restarting, do the following:
- Choose Start > Run and type CMD, then click OK to open a Command Window
- Enter the command nbtstat -R (the "R" must be uppercase).
- Enter the command nbtstat -RR (both R's must be uppercase).
- Enter the command ipconfig /flushdns
Testing for success:
- Enter the command ping images.mycompany.com - you should see the IP address of the staging server, which you entered into your hosts file
- Enter the command exit to close the Command Window.
- Go to your website and test your images and viewers. Check that any commands are applied correctly. Note: you could encounter broken images while testing if the staging environment being out of sync with production.
- When you are done reviewing the staging server, edit the Hosts file and remove the link that was added. Save the file again and restart.
Note: If you have trouble changing your hosts file, see here or contact your local IT helpdesk
Mac OS
Mac OS X 10.2 or later
Edit the /private/etc/hosts file. For more information on how to use the hosts file, open Terminal and type: man hosts
Note: Editing this file requires root privileges.
Mac OS X 10.0 through 10.1.5
- Open /Applications/Utilities/NetInfo Manager.
- To allow editing the NetInfo database, click the padlock in the lower-left corner of the window.
- Enter your Admin password and click OK.
- In the second column of the browser view, select the node named "machines." You see entries for DHCP, broadcasthost, and localhost in the third column.
- The quickest way to create an entry is to duplicate an existing one. So select the "localhost" item in the third column.
- Choose Duplicate from the Edit menu. A confirmation alert appears.
- Click Duplicate. A new entry called "localhost copy" appears, and its properties are shown below the browser view.
- Double-click the value of the ip_address property and enter the IP address of the other computer. [IP] hostname.scene7.com
- Double-click the value of the name property and enter the host name you want for the other computer.
- Click the serves property and choose Delete from the Edit menu.
- Choose Save from the File menu. A confirmation alert appears.
- Click Update this copy.
- Repeat steps 6 through 12 for each additional host entry you want to add.
- Choose Quit from the NetInfo Manager menu. You do not need to restart the computer.
- Testing for success:
Do a ping on the domain you use - you should see the IP address of the staging server, which you entered into your hosts file. http://www.wikihow.com/Ping-on-Mac-OS
Go to your website and test your images and viewers. Check that any commands are applied correctly. Note: you could encounter broken images while testing if the staging environment being out of sync with production.
Linux
- With the editor of your choice, open the file from ROOT /etc/hosts.
- Add the host entry:
[IP] hostname.scene7.com - Save and quit the file.
- Depending on your version, you could have to restart for the updated file to take effect.
- Testing for success:
- Do a ping on the domain you use - you should see the IP address of the staging server, which you entered into your hosts file.
- Go to your website and test your images and viewers. Check that any commands are applied correctly. Note: you could encounter broken images while testing if the staging environment being out of sync with production. When you are done reviewing the staging server, edit the Hosts file and remove the link which was added.