no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Vorhergehende Überarbeitung | |||
— | centos:dansg:client [20.04.2018 10:47. ] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Konfiguartion des Browsers auf der Clientseite | ||
+ | {{: | ||
+ | |||
+ | Zur Aktivierung unserer Proxy-Konfiguration haben wir zwei Möglichkeiten. Die scheinbar schnelle und einfache manuelle Variante, oder die vollautomatische zentrale Konfiguration. | ||
+ | Mit der Letztgenannten ist man vor allem bei späteren Änderungen und Erweiterungen weitaus flexibler. | ||
+ | ===== manuelle Konfiguartion ===== | ||
+ | Im firefox aktivieren wir nun unter dem Menüpunkt **Bearbeiten | Einstellungen** bei **Erweitert** den Reiter **Netzwerk**. Bei den Einstellungen tragen wir nun die IP-Adresse unseres // | ||
+ | ===== automatische Konfiguartion ===== | ||
+ | ==== Apache-Konfig ==== | ||
+ | In der Konfigurationsdatei **/ | ||
+ | < | ||
+ | |||
+ | # If the AddEncoding directives above are commented-out, | ||
+ | # probably should define those extensions to indicate media types: | ||
+ | # | ||
+ | # hinzugefügt am 16.08.2008 wegen Proxy-Pac-File-Unterstützung | ||
+ | AddType application/ | ||
+ | ==== V-Host Definition ==== | ||
+ | Für unsere Proxy-Konfiguration nutzen wir einen **virtuellen Host**, den wir wie folgt definieren: | ||
+ | <code apache vhost.conf> | ||
+ | # | ||
+ | # proxy.nausch.org | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@nausch.org | ||
+ | ServerName proxy.nausch.org: | ||
+ | ServerAlias proxy.nausch.org | ||
+ | ServerPath / | ||
+ | DocumentRoot "/ | ||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | AllowOverride AuthConfig | ||
+ | Order Deny,Allow | ||
+ | Deny from all | ||
+ | Allow from 127.0.0.1 | ||
+ | Allow from 10.0.10.0/ | ||
+ | </ | ||
+ | DirectoryIndex index.html | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | </ | ||
+ | Abschließend starten wir dann unseren Webserver einmal durch: | ||
+ | # service httpd restart | ||
+ | ==== proxy.pac file ==== | ||
+ | Gemäß unserer V-Host-Definition legen wir nun das entsprechende Verzeichnis (// | ||
+ | # mkdir / | ||
+ | # chown apache: | ||
+ | Hier erstellen wir nun unser **// | ||
+ | # vim proxy.pac | ||
+ | <code apache> | ||
+ | // proxy pac file | ||
+ | |||
+ | function FindProxyForURL(url, | ||
+ | { | ||
+ | // proxy string to return | ||
+ | var proxy = "PROXY proxy.nausch.org: | ||
+ | |||
+ | // no Proxy | ||
+ | if (shExpMatch(url, | ||
+ | if (shExpMatch(url, | ||
+ | if (shExpMatch(url, | ||
+ | if (shExpMatch(url, | ||
+ | |||
+ | // go Proxy | ||
+ | return proxy; | ||
+ | } | ||
+ | </ | ||
+ | Abschließend verlinken wir nun noch unsere **proxy.pac** nach **index.html** | ||
+ | # ln -s / | ||
+ | === Clientseite === | ||
+ | Auf Seiten unserer Clients ist lediglich bei den Browsereinstellungen die **automatische Proxykonfiguration** mit der URL **http:// | ||
+ | ====== Links ====== | ||
+ | * **[[centos: | ||
+ | * **[[wiki: | ||
+ | * **[[http:// | ||
+ | |||