------------------------------------------- Paskirstytų resursų serveriai
top - interaktyvi priemonė. spaudžiam u ir rašom http.
Išeinam q, ctrl+c.
Sukuriam:
10.0.1.61
/apache/htdocs/... gif kopijuojam į /var_www
10.0.1.55
/var_www kataloge
touch a.html
Tada atdidarom su F4:
labas rytas
<img src="http://10.0.1.61/a.gif">
-------------------------------------------- Packetyzer
Tada windows-ai http://www.paglo.com/opensource/packetyzer#
įsidiegia.
1. Resursai imami atskirai, skirtingi kompiuteriai-serveriai nebendrauja tarpusavyje,
naršyklė ima resursus atskirai iš kelių serverių.
.
2. Kešavimo kodas- 304
3. Atsiuntimo kodas- 200
4. Redirect (Presiuntimo kodas)- 302
5. Nerastas resursas- 404
Packetyzer: tcp flow
-------------------------------------------- PROXY kūrimas
/apache1/bin/httpd -l
einam į /apache1/apache .... .229 ....
touch _configure_proxy.txt
Jame
make tidy
make clean
./configure --prefix=/apache1 --enable-proxy --enable-proxy-connect --enable-proxy-http 2> ./err.txt
make 2>> ./err.txt
make install 2>> ./err.txt
Paleidziam:
sh ./_configure_proxy.txt
Vėl tikriname
/apache1/bin/httpd -l
--------------- httpd.conf
10.0.1.61 sukuriame test katalogą ir failą a.html
Proxy:
10.0.1.55
/var_www kataloge
touch b.html
Tada atdidarom su F4:
labas rytas
<a href="/./test_unknown/a.html">
Kuriame Reverse Proxy 10.0.1.55 kompiuteryje httpd.conf faile
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /test_unknown http://10.0.1.61/test
ProxyPassReverse /test_unknown http://10.0.1.61/test