免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2725 | 回复: 3
打印 上一主题 下一主题

[其他] FreeBSD Squid反向代理 + Nginx 的问题. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-12 22:24 |只看该作者 |倒序浏览

系统是 FreeBSD 8.2 的..

Squid 是 3.1 的稳定版  

Nginx 1.0.8 版...

ip1 .10.3.0.50
ip2 .10.3.0.51

ip1 上装 Squid  配置端口为 80  Nginx 配置端口为81    域名为 www.testsquid.com         hosts  已增加 10.3.0.50  www.testsquid.com     10.3.0.51 www.testsquid1.com
ip2 上 Nginx 端口80  域名为 www.testsquid1.com

现在访问 www.testsquid.com 可以访问...到... www.testsquid.com:81

但是...无法访问到 www.testsquid1.com   

非常郁闷..........


squid.conf 配置文件基本上是..

visible_hostname www.testsquid.com
cache_mgr root@localhost.domain
http_port 80 vhost vport
cache_mem 256 MB
maximum_object_size_in_memory 2 MB
memory_replacement_policy lru
cache_dir ufs /usr/local/squid/var/cache 512 16 256
max_open_disk_fds 0
cache_swap_low 80
cache_swap_high 97
minimum_object_size 0 KB
maximum_object_size 30 MB
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %h" "%{User-Agent}>h" %Ss:%Sh
access_log /usr/local/squid/var/logs/page_zs_access_log combined
pid_filename /usr/local/squid/var/logs/squid.pid
cache_log /usr/local/squid/var/logs/cache.log
cache_store_log none
cache_peer www.testsquid.com parent 81 0 no-query no-digest originserver name=test
cache_peer www.testsquid1.com parent 80 0 no-query no-digest originserver name=test1
cache_peer_domain test www.testsquid.com
cache_peer_domain test1 www.testsquid1.com
cache_peer_access test allow all
cache_peer_access test1 allow all
http_access allow all
acl QUERY urlpath_regex .php .jsp .asp .pl .cgi
cache deny QUERY
cache_effective_user squid
cache_effective_group squid
acl AdminBoxes src 127.0.0.1 172.16.0.1 192.168.0.1
acl Purge method PURGE
http_access allow AdminBoxes Purge
http_access deny Purge
httpd_suppress_version_string off




请大家帮忙看看···是什么问题吖!!!郁闷·····

论坛徽章:
0
2 [报告]
发表于 2012-06-13 11:05 |只看该作者
有人帮忙么??晕!!

论坛徽章:
0
3 [报告]
发表于 2012-08-08 19:44 |只看该作者
我的SQUID怎么装不上啊提示这个# make  make: no target to make.  你怎么装的啊?
FreeBSD系统 8.2 和9.0我都测试过显示一样, 帮下我


checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc  -g) works... yes
checking whether the C compiler (gcc  -g) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking host system type... i386-unknown-freebsd8.0
checking for pkg-config... false
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for object suffix... o
Store modules built: ufs
Removal policies built: lru
Auth scheme modules built: basic
unlinkd enabled
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for sh... /bin/sh
checking for false... /usr/bin/false
checking for true... /usr/bin/true
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for mkdir... /bin/mkdir
checking for ln... /bin/ln
checking for perl... none
checking for ar... /usr/bin/ar
Perl is required to compile Squid
Please install Perl and then re-run configure
# make
make: no target to make.

论坛徽章:
0
4 [报告]
发表于 2012-09-25 11:14 |只看该作者
回复 3# lovebak


   

Please install Perl and then re-run configure   

这不是有提示么!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP