カスタム検索
tomo.gif (1144 ツバツイツト)line.gif (927 ツバツイツト)line.gif (927 ツバツイツト)To previous pageTo home pageMailing to me

Apacheをプロキシサーバーとして利用する

Modified: 3 September 2000


ProxyのオプションでMakeする
http.conf に、Proxyを設定する
動作確認


ProxyのオプションでMakeする

$ cd apache_1.3.9
$
./configure
--enable-module=proxy --enable-shared=proxy
    :
$ make
    :
$ su

password: xxxx
# make install

    :
#


http.conf に、Proxyを設定する

##
## httpd.conf -- Apache HTTP server configuration file
##
(((途中略)))
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file README.DSO in the Apache 1.3 distribution for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order is which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule proxy_module libexec/libproxy.so
(((途中略)))
#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
ProxyRequests On

#<Directory proxy:*>
#    Order deny,allow
#    Deny from all
#    Allow from 192.168.0.0/24
#</Directory>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On

#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
CacheRoot "/usr/local/apache/proxy"
CacheSize 5
CacheGcInterval 4
#CacheMaxExpire 24
CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com

#</IfModule>
# End of proxy directives.
(((以下、略)))


動作確認

ブラウザでProxyサーバーの設定をします。

ポート番号は、80 です。


To previous pageTo home pageMailing to meJump to Top of pageline.gif (927 ツバツイツト)tomo.gif (1144 ツバツイツト)
カスタム検索


Tweet