﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; Varnish</title>
	<atom:link href="http://help.vps12.com/tag/varnish/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>如何用DNS+GeoIP+Nginx+Varnish做世界级的CDN(转)</title>
		<link>https://help.vps12.com/1360.html</link>
		<comments>https://help.vps12.com/1360.html#comments</comments>
		<pubDate>Sat, 08 Aug 2015 18:43:52 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[软件使用]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Varnish]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1360</guid>
		<description><![CDATA[如何用BIND, GeoIP, Nginx, Varnish来创建你自己的高效的CDN网络？ CDN，意思是Content Distrubtion Network，意思是内容分发网络，简单的说，就是全地域范围内的负载均衡，全地域的概念可以是全国，也可以是全世界。由统一的DNS服务器进行地址转发，选择离用户最近的地区服务器进行负载均衡。本质上是从一个机房内的负载均衡扩展到了全世界范围内的负载均衡。同时可以将本地化的内容，由当地的服务器实现。做浏览器的地区自动选择。 比如在中国，被人为划分成两大区域，北方是网通，南方是电信。这两个网络之间互访是比较慢的。作为大型网站，一种解决办法是将全部服务器架设在双线或三线ISP处，由ISP来提供路由上的选择。这样做，线路的成本会比较高。另一种办法就是将服务器架设在两边，南方一台，北方一台，然后由服务器自己选择，如果IP在电信，就转发请求到南方的服务器，如果是网通就转发到北方的服务器。 再扩大范围，可以将美国来的请求交由美国服务器处理，这样也缩短了用户在路由上的等待时间。这就是内容分发网络。 而作为这个网络上的所有节点，都可以当成虚拟服务器来看待。至于在各地的服务器如何做负载均衡，可以由各节点之间完成。 准备工作如下：你需要下载如下软件以实现上述功能 Nginx，BIND，GeoIP，Varnish 接下来是编译和安装bind9和geoip # tar -xzvf bind-9.2.4.tar.gz # tar -xzvf GeoIP-1.4.6.tar.gz # cd GeoIP-1.4.6 # ./configure –prefix=/usr/local/geoip # make # make install # cd .. # patch -p0 &#60; bind-9.2.4-geodns-patch/patch.diff //给bind9打补丁，让bind9直接支持geoip库 # cd bind-9.2.4 # CFLAGS=”-I/usr/local/geoip/include” LDFLAGS=”-L/usr/local/geoip/lib -lGeoIP” ./configure –prefix=/usr/local/bind # make # make install [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/1360.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
