LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 990|回复: 2

如何实现apache代理服务器

[复制链接]
发表于 2003-2-7 15:58:29 | 显示全部楼层 |阅读模式
加载了proxy模块
修改了httpd.conf
客户端仍然不能连入网络(浏览器已做相应修改)
哪位指点一下啊

httpd.conf的proxy部分:
<IfModule mod_proxy.c>

    # 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.2
    </Directory>
</IfModule>

#
# 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 "/var/cache/apache"
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.
发表于 2003-6-4 18:10:22 | 显示全部楼层
把Deny from all注释掉
发表于 2003-6-4 18:47:38 | 显示全部楼层
tony 参考这个:
http://httpd.apache.org/docs/mod/mod_proxy.html
藕节说得有理。
是不是应该改成这样:
<Directory proxy:*>
Order Allow,Deny
Deny from all
Allow from 192.168.0.2
</Directory>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表