惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
The GitHub Blog
The GitHub Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
量子位
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
T
Tailwind CSS Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
G
Google Developers Blog
M
MIT News - Artificial intelligence

博客园 - 凬月

DIV+CSS中标签dl dt dd常用的用法 使用gulp构建一个项目 (转)利用CAS算法实现通用线程安全状态机 棋牌游戏服务器架构设计 STM32F103引脚功能定义 STM32的型号的命名规则 关闭jtag保留swd 微信支付----维权接口开发!(转掌眼) 微信支付--入门篇(转掌眼) LoadRunner培训初级教程 [转]在windows环境中使用varnish redis windows下的环境搭建 显示数据库中所有表的记录数 删除MSSQL数据库中所有表 一个带标号的CSS文章列表写法 CSS图片列表 YUI3 CSS Ubuntu 13.10 64位 无法 安装 ia32-libs 解决办法 [转]编译Android源代码常见错误解决办法
squid-nginx 基本配置
凬月 · 2015-01-30 · via 博客园 - 凬月
#本地绑定的IP端口 
http_port 192.168.1.253:801 vhost 
visible_hostname test-squid
cache_dir ufs c:/squid/cache 1024 16 256 
cache_mem 200 MB 
#代理的IP地址和端口 
cache_peer 192.168.1.253 parent 8011 0 no-query originserver weight=1 name=a 
#加速两个站点 
#cache_peer_domain a a.com

#泛域名
#acl mydomain dstdom_regex .*\.a\.com
acl mydomain dstdomain .a.com
cache_peer_access a allow mydomain

acl all src 0.0.0.0/0.0.0.0 
http_access allow all 
cache_peer_access a allow all 
cache_peer_access b allow all 
tcp_recv_bufsize 65535 bytes 

cache_mgr phpsir@qq.com 
icp_port 0
http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    upstream a.com { 
      server  192.168.1.253:801; 
    } 
  
    server{ 
      listen 80; 
      server_name a.com;
      location / { 
        proxy_pass         http://a.com; 
        proxy_set_header   Host             $host; 
        proxy_set_header   X-Real-IP        $remote_addr; 
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for; 
      } 
    }

posted @ 2015-01-30 17:42  凬月  阅读(1427)  评论()    收藏  举报