Покажи Публикации - cocob
* Виж публикациите на потр. | Виж темите на потр. | Виж прикачените файлове на потр
Страници: [1]
1  Нетехнически теми / Идеи и мнения / Re: Линукс за ученици -: Nov 01, 2010, 17:17
Като детска игра...
https://help.ubuntu.com/community/UbuntuLTSP/LTSPQuickInstall

...успех и браво за ентусиазма!
2  Linux секция за начинаещи / Настройка на програми / Re: SQUID -: Nov 01, 2010, 16:55
Надявам се това да ти помогне. Най-отдолу има линк към хелпа.

12. Automatic browser-configuration

When you're getting tired of always reconfiguring all your browsers when something has changed you can use a central 'automatic-configuration'-script.
First of all, there needs to be a webserver that's running on your proxyserver because the configuration file will be server by normal 'http-requests'.
When you're using Apache open up the mime.conf file in your favorite editor (for the right location check your server config-file). Add this line :

application/x-ns-proxy-autoconfig pac

Now when this is done, restart the webserver.

You can freely choose the name of the configuration file, as long as it ends with .pac. This is my example :

proxy.pac-->

function FindProxyForURL(url, host)  {
  if (isInNet(host, "192.168.1.0", "255.255.255.0"))
    {
     return "DIRECT";
    }
  else if (isInNet(host, "192.168.6.0", "255.255.254.0"))
    {
     return "DIRECT";
    }
  else
    {
     return "PROXY proxy.mylan.com:3128;SOCKS proxy.mylan.com:3128";
    }
}

<--

Source - http://linux.cudeso.be/linuxdoc/squid.php#squid_uasge
Страници: [1]