From the course: Ubuntu Linux: Network Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure an HTTP client to automatically use a proxy server

Configure an HTTP client to automatically use a proxy server

From the course: Ubuntu Linux: Network Administration

Start my 1-month free trial

Configure an HTTP client to automatically use a proxy server

- [Narrator] If you want your clients to automatically use the proxy server you configured. You can configure a PAC file, or Proxy auto-config script. This is a small Javascript file, hosted on a web server, where a client can find it, and use the contents to automatically configure a proxy. This can be especially helpful if you want the ability to point clients at a different proxy after you set up your infrastructure. If you want to define more than one proxy server, or if you want to control which proxy a client uses, based on their network address. Let's start out here on the server by creating a basic script. I'll write, nano, var, www/html/proxy.pac and here I'll write function. Find proxy for URL. And give it the arguments URL and host. Then I'll write return, proxy and the IP address of my proxy server. In this case, 10.0.2.10 port 3128. And I'll close the curly brace. Now in the browser's proxy configuration area, I can choose automatic proxy configuration URL, and put in the…

Contents