歡迎您光臨本站 註冊首頁

FreeBSD Squid反向代理 + Nginx 的問題.

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

FreeBSD Squid反向代理 + Nginx 的問題.


系統是 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




請大家幫忙看看···是什麼問題吖!!!鬱悶·····

《解決方案》

有人幫忙么??暈!!
《解決方案》

我的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.
《解決方案》

回復 3# lovebak


   

Please install Perl and then re-run configure   

這不是有提示么!

[火星人 ] FreeBSD Squid反向代理 + Nginx 的問題.已經有730次圍觀

http://coctec.com/docs/service/show-post-12267.html