课程: Ubuntu Linux: Network Administration

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Configure an HTTP client to automatically use a proxy server

Configure an HTTP client to automatically use a proxy server

课程: Ubuntu Linux: Network Administration

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…

内容