<?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>ubuntu,debian,redhat -linuxany.com &#187; Apache</title>
	<atom:link href="http://www.linuxany.com/archives/category/application/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache 记录代理后的用户来源ip</title>
		<link>http://www.linuxany.com/archives/1613.html</link>
		<comments>http://www.linuxany.com/archives/1613.html#comments</comments>
		<pubDate>Tue, 09 Aug 2011 15:29:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1613</guid>
		<description><![CDATA[前端nginx代理设置： proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 后端apache设置： LogFormat &#34;%{X-Forwarded-For}i %l %u %t \&#34;%r\&#34; %&#62;s %b \&#34;%{Referer}i\&#34;\&#34;%{User-Agent}i\&#34;&#34; common 就可以接收到源ip了。 您还可能感兴趣的内容Nginx 让浏览器告诉你负载均衡分到了哪台服务器负载均衡软件比较(HA/LVS/Nginx)Nginx 支持PATH_INFONginx 502 Bad Gateway错误及解决方案收集Nginx 性能优化（突破十万并发）]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1613.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache 在代理后显示正确的用户IP</title>
		<link>http://www.linuxany.com/archives/1478.html</link>
		<comments>http://www.linuxany.com/archives/1478.html#comments</comments>
		<pubDate>Sat, 05 Feb 2011 07:05:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[combined]]></category>
		<category><![CDATA[CustomLog]]></category>
		<category><![CDATA[logformat]]></category>
		<category><![CDATA[SetEnvIf]]></category>
		<category><![CDATA[X-Forwarder-For]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1478</guid>
		<description><![CDATA[apache日志中默认有%h来指定来访客户端你的ip地址，但是如果客户端使用了代理上网则%h获得的ip地址会不准。可以设定 X-Forwarded-For 参数来获取客户端真实的ip地址 对于使用了反向代理的客户端，跟踪真实的ip地址 %{X-Forwarded-For}i &#160; LogFormat &#34;%{X-Forwarder-For}i %l %u %t \&#34;%r\&#34; %&#62;s %b \&#34;%{Referer}i\&#34; \&#34;%{User-Agent}i\&#34;&#34; linuxanyproxy LogFormat &#34;%h %l %u %t \&#34;%r\&#34; %&#62;s %b \&#34;%{Referer}i\&#34; \&#34;%{User-Agent}i\&#34;&#34; combined &#160; SetEnvIf X-Forwarder-For &#34;^.*\..*\..*\..*&#34; is-forwarder &#160; CustomLog logs/access_log combined env=!is-forwarder CustomLog logs/access_log linuxanyproxy env=is-forwarder 需要注意的地方： 1、使用正向代理的客户端，为了安全因素，在连接外部网络之前内部代理（网关）会去掉原有的X-Forwarded-For信息，这种情况server端可以信任X-Forwarded-For信息，表明连接出自某个内部网络。 2、如果server端使用了反向代理（比如server在7层代理的后面），这种情况就不能完全信任X-Forwarded-For信息，最好使用一个白名单来进行控制。 3、如果通过了多级反向代理的话，X-Forwarded-For的值并不止一个，而是一串ip值，究竟哪个才是真正的用户端的真实IP呢？ X-Forwarded-For: client1, proxy1, proxy2 X-Forwarded-For会取得第一个非unknown的有效IP字符串。 您还可能感兴趣的内容Apache Logs: how long [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1478.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>awk:查看Apache的并发请求数及其TCP连接状态数据</title>
		<link>http://www.linuxany.com/archives/1371.html</link>
		<comments>http://www.linuxany.com/archives/1371.html#comments</comments>
		<pubDate>Fri, 01 Oct 2010 11:25:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1371</guid>
		<description><![CDATA[netstat -n &#124; awk &#8216;/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}&#8217; 状态：描述 CLOSED：无连接是活动的或正在进行 LISTEN：服务器在等待进入呼叫 SYN_RECV：一个连接请求已经到达，等待确认 SYN_SENT：应用已经开始，打开一个连接 ESTABLISHED：正常数据传输状态 FIN_WAIT1：应用说它已经完成 FIN_WAIT2：另一边已同意释放 ITMED_WAIT：等待所有分组死掉 CLOSING：两边同时尝试关闭 TIME_WAIT：另一边已初始化一个释放 LAST_ACK：等待所有分组死掉 您还可能感兴趣的内容手工释放linux内存——/proc/sys/vm/drop_cachesDebian下系统时间不准确（快8小时）解决方案php给图片加水印L2TP协议与IPSec技术在VPN的应用保护Debian下的SSH 不被强行攻击[原创]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1371.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>三大WEB服务器对比分析（apache ,lighttpd,nginx）</title>
		<link>http://www.linuxany.com/archives/1368.html</link>
		<comments>http://www.linuxany.com/archives/1368.html#comments</comments>
		<pubDate>Fri, 01 Oct 2010 11:23:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Lighttpd]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1368</guid>
		<description><![CDATA[在相对大 的网站，节约下来的服务器成本无疑是客观的。而有些小型网站往往服务器不多，如果采用 Apache 这类传统 Web 服务器，似乎也还能撑 过去。但有其很明显的弊端： Apache 在处理流量爆发的时候(比如爬虫或者是 Digg 效应) 很容易过载，这样的情况下采用 Nginx 最为合适。 建议方案： Apache 后台服务器（主要处理php及一些功能请求 如：中文url） Nginx  前端服务器（利用它占用系统资源少得优势来处理静态页面 大量请求） Lighttpd 图片服务器 总体来说，随着nginx功能得完善将使他成为今后web server得主流。 3种WEB服务器的比较： server Apache Nginx Lighttpd Proxy代理 非常好 非常好 一般 Rewriter 好 非常好 一般 Fcgi 不好 好 非常好 热部署 不支持 支持 不支持 系统压力比较 很大 很小 比较小 稳定性 好 非常好 不好 安全性 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1368.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ApacheBench with mod_gip, mod_deflate</title>
		<link>http://www.linuxany.com/archives/1344.html</link>
		<comments>http://www.linuxany.com/archives/1344.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 12:55:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[ApacheBench]]></category>
		<category><![CDATA[mod_deflate]]></category>
		<category><![CDATA[mod_gzip]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1344</guid>
		<description><![CDATA[ApacheBench is one of the most common programs used to benchmark web servers. By default apachebench will run using HTTP/1.0 requests and without compression enabled even if the tested server supports that. For example: ab -n 1 -v 4 &#34;http://www.linuxany.com/&#34; This is ApacheBench, Version 2.0.41-dev &#60;$Revision: 1.141 $&#62; apache-2.0Copyright (c) 1996 Adam Twiss, Zeus Technology [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1344.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Apache Logs: how long does it take to serve a request?</title>
		<link>http://www.linuxany.com/archives/1341.html</link>
		<comments>http://www.linuxany.com/archives/1341.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 12:46:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apachelogs]]></category>
		<category><![CDATA[combined]]></category>
		<category><![CDATA[logformat]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1341</guid>
		<description><![CDATA[Apache is one complex piece of software, that contains many features most people are normally not using. You can do so many things with apache outside of the default configurations, and I am not going to discuss today about an external module, but about the plain old mod_log_config. Normally most people will use for apache [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1341.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache:Disable the HTTP TRACE method</title>
		<link>http://www.linuxany.com/archives/1338.html</link>
		<comments>http://www.linuxany.com/archives/1338.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 12:37:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[trace]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1338</guid>
		<description><![CDATA[Description: How to disable the HTTP TRACE method on recent apache versions. Most vulnerability scanners (like the popular nessus, but commercial ones also) will complain (normally as a low thread or warning level) about TRACE method being enabled on the web server tested. Normally you will have this enabled by default, but if you want [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1338.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

