Ubuntu server 10.04.04 x64
Пытаюсь настроить автоматическую настройку прокси через wpad.dat
/var/www/wpad.datfunction FindProxyForURL(url, host) {
if (isInNet(host, "192.168.10.0", "255.255.255.0")) {
return "DIRECT";
}
if (isInNet(myIpAddress(), "192.168.10.0", "255.255.255.0")) {
return "PROXY 192.168.10.254:3128";
}
}
squidhttp_port 3128
acl rust src 192.168.10.10 # RFC1918 possible internal network
http_access allow rust
#Директория для кэша
cache_dir ufs /etc/squid3/cache 4096 128 256
#Лимит на использование памяти squid
memory_pools on
memory_pools_limit 256 MB
#Вывод ошибок
error_directory /usr/share/squid3/errors/Russian-1251
#Logi
access_log /etc/squid3/log/access.log squid
cache_log /etc/squid3/log/cache.log
cache_store_log /etc/squid3/log/store.log
default<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes +FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
cat /etc/apache2/httpd.confAddType application/x-ns-proxy-autoconfig .dat
UPD:
Для того, что бы все заработало НЕ НАДО прописыватьAddType application/x-ns-proxy-autoconfig .dat в /etc/apache2/httpd.conf и еще куда либо
При прописывании в IE "Использовать сценарий автоматической настройки" страницы не открываются,т.е не отрабатывается
UPD: при галке "Автоматическое определение параметров", так же ничего не работает!
при открытии
http://192.168.10.254/wpad.datIE его пытается скачать...
ЧЯДНТ?
Пока только пытаюсь хоть в ручную настроить....в сети есть dchp3-server + bind9