TestNav 8 - Global Proxy and iPad
Technical Bulletin
January 21, 2015
What is happening?
This bulletin provides a workaround to customers previously unable to use TestNav 8 on iPad with a global proxy. Detailed below, this procedure will enable students in organizations using this iPad setup to successfully log in to their online test sessions.
What does this mean?
Customers using iPads with MDM software and a global proxy for web security will need to implement the procedure below in order to sign in to TestNav 8. This procedure puts a proxy auto-config (PAC) file in place to handle browser requests. The PAC file will direct requests to access the TestNav 8 URL through your proxy server.
Administrators must then download the attached proxy auto-config (PAC) file and deploy the file to the web server, following the instructions below. Once the file is deployed, set your MDM software to use the PAC file by setting the MDM software to "Auto" proxy, rather than "Manual," and entering the URL that links to the PAC file.
What do I need to do (and how do I do it)?
- Download the proxy.pac file.
Define the Multi-Purpose Internet Mail Extension (MIME) type for the PAC file via the server config file to tell the web server what the PAC file is.
Below are instructions for the most widely used web servers. For other servers, contact Pearson Support.
Apache Web Server:
Go to the directory on your web server where your website is located.
Create a new text file called ".htaccess". This file defines how the server handles files inside of this directory.
Add a MIME type to the ".htaccess" file.
Open the ".htaccess" file using a text editor, and add the following line:
application/x-ns-proxy-autoconfig.
IIS Web Server:
Select your sites domain.
Select HTTP headers tabs, and click on MIME types.
- Click New.
Enter the following information:
Extension: .pac
MIME Type: application/x-ns-proxy-autoconfig
Click Ok.
Feed the URL that has the PAC file to the MDM software for the iPad using the following:
proxy.pac
function FindProxyForURL(url, host) { var lhost = host.toLowerCase(); host = lhost; if ((host == "localhost") ||(shExpMatch(host, "localhost.*")) || (host == "127.0.0.1")) { return "DIRECT"; } return "PROXY 192.xx.xx.xxx:8080"; }
JSIf you have a URL to your proxy, make sure that the return statement looks like: "PROXY www.example.com:8080"
The keyword "PROXY" must appear as in the return example:
"PROXY 192.xx.xx.xxx:8080"
Related Information
To learn more about:
- PAC files, see Wikipedia's Proxy auto-config article.
- MIME types, see Wikipedia's MIME article.