免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: HonestQiao
打印 上一主题 下一主题

[proxy] [操作实例] squid-2.6之Web反向代理加速实做/防盗链/防盗用/防爬虫 [复制链接]

论坛徽章:
0
31 [报告]
发表于 2007-07-09 11:26 |只看该作者
你这都用80
是不是apache和squid不在同一台机子上,如果在同一台机子上要怎么设置了

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
32 [报告]
发表于 2007-07-10 14:01 |只看该作者
原帖由 jun821 于 2007-7-9 11:26 发表
你这都用80
是不是apache和squid不在同一台机子上,如果在同一台机子上要怎么设置了


同一台机子的话,可以:
1. squid、apache运行在不通的ip
2. squid、apache运行在不通的端口

论坛徽章:
0
33 [报告]
发表于 2007-07-17 13:42 |只看该作者

回复 #9 seacaptain 的帖子

accel           Accelerator mode. Also needs at least one
                   of vhost/vport/defaultsite.

论坛徽章:
0
34 [报告]
发表于 2007-07-17 14:06 |只看该作者

回复 #32 HonestQiao 的帖子

选择1

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
35 [报告]
发表于 2007-07-17 15:41 |只看该作者
原帖由 gaochong 于 2007-7-17 14:06 发表
选择1


那是最简单的设置了啊。

每个都使用一个ip的80端口不就得了?

论坛徽章:
0
36 [报告]
发表于 2007-07-17 16:20 |只看该作者

回复 #35 HonestQiao 的帖子

而且从安全方面考虑,也应该选择1。如下:

If you do not have a separate computer with Squid installed, you can run Squid on the source server itself. Because both applications cannot have the same IP address or port number, you need to bind the source server to a different IP address or change the port number. It is better to change the IP address instead of the port number. This is because when the source server generates an error message, it may open an incorrect port, which results in conflicting port numbers.

If the source server generates an HTTP redirect message on an end user’s request, the source server adds the nonstandard port number to the Uniform Resource Indicator (URI), such as:

http://www.abc.com:81

As a result, if the client receives a response, the client connects to the nonstandard port and bypasses Squid. If you need to run Squid on the same computer as the source server, it is better to configure the source server to listen to the loopback address to avoid conflicting port numbers.

论坛徽章:
0
37 [报告]
发表于 2007-07-30 17:08 |只看该作者
版主大人,我想请教一下,你上面squid配置如何实现一对多呢?(您的配置似乎只能代理一台APACHE服务器)
就是说,如何在多台不同域名的web服务器前面放一台squid做代理呢?谢谢......

已经在看您的文章:
http://bbs.chinaunix.net/viewthread.php?tid=886235&highlight=虚拟主机

谢谢了!

[ 本帖最后由 fairysky 于 2007-7-30 17:52 编辑 ]

论坛徽章:
0
38 [报告]
发表于 2007-08-06 17:28 |只看该作者
good
我整个配置文件
就只有楼主写的那些
有没有问题?

论坛徽章:
0
39 [报告]
发表于 2007-10-29 13:58 |只看该作者
请问一下.如何实现这样的功能.一般情况下.反向代理的域名都能被访问.现在我想让访问都从指的网站才能访问被代理的网站.如何实现
流程:指定网站----->被代理网站
不能直接访问被代理的网站

论坛徽章:
0
40 [报告]
发表于 2008-04-01 04:00 |只看该作者
原帖由 phpman 于 2007-1-8 15:25 发表

可以把squid.conf中经常变动的部分(比如加速的域名)分离成单个文件,这样即使你有上千台squid也不怕了~


这个方法也劳民伤财啊

还有别的办法吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP