<?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>icez network &#187; apache</title>
	<atom:link href="http://www.icez.net/blog/tags/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.icez.net/blog</link>
	<description>Technical Blog by icez network</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:31:37 +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>0064 &#124; แก้ปัญหา IP ใน log apache ไม่ตรง</title>
		<link>http://www.icez.net/blog/131/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-ip-%e0%b9%83%e0%b8%99-log-apache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95%e0%b8%a3%e0%b8%87</link>
		<comments>http://www.icez.net/blog/131/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-ip-%e0%b9%83%e0%b8%99-log-apache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95%e0%b8%a3%e0%b8%87#comments</comments>
		<pubDate>Fri, 19 Jun 2009 04:17:44 +0000</pubDate>
		<dc:creator>icez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.icez.net/blog/?p=131</guid>
		<description><![CDATA[ที่มา: การติดตั้ง mod_rpaf &#8211; reverse proxy add forward รายละเอียดตามไปดูในที่มาละกันเนาะ ขี้เกียจพิมพ์ซ้ำ เอาวิธีก๊อปวางบ้านๆ ของเราดีกว่า wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz tar -xvzf mod_rpaf-0.6.tar.gz cd mod_rpaf-0.6 apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c เปิดไฟล์ config apache (แนะนำให้ใส่ใน /etc/httpd/conf.d/mod_rpaf.conf) แก้ตัวแดงๆ ให้ตรงกับเครื่องคุณเองด้วยนะครับ - อันบนเอาบรรทัดสุดท้ายจากคำสั่ง apxs มา - อันล่างเอาเป็น ip ของเครื่อง squid LoadModule rpaf_module /usr/lib64/httpd/modules/mod_rpaf-2.0.so RPAFenable On RPAFsethostname Off RPAFproxy_ips 127.0.0.1 RPAFheader X-Forwarded-For ถ้าใช้ตัวนี้ ก็เอา ipfix.php [...]]]></description>
			<content:encoded><![CDATA[<p>ที่มา: <a href="http://toey.tc20.net/2009/05/25/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87-mod_rpaf-reverse-proxy-add-forward/" target="_blank">การติดตั้ง mod_rpaf &#8211; reverse proxy add forward</a></p>
<p>รายละเอียดตามไปดูในที่มาละกันเนาะ ขี้เกียจพิมพ์ซ้ำ<br />
เอาวิธีก๊อปวางบ้านๆ ของเราดีกว่า</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>stderr.net<span style="color: #000000; font-weight: bold;">/</span>apache<span style="color: #000000; font-weight: bold;">/</span>rpaf<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>mod_rpaf-<span style="color: #000000;">0.6</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> mod_rpaf-<span style="color: #000000;">0.6</span>.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mod_rpaf-<span style="color: #000000;">0.6</span>
apxs <span style="color: #660033;">-i</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-n</span> mod_rpaf-<span style="color: #000000;">2.0</span>.so mod_rpaf-<span style="color: #000000;">2.0</span>.c</pre></div></div>

<p>เปิดไฟล์ config apache (แนะนำให้ใส่ใน /etc/httpd/conf.d/mod_rpaf.conf)<br />
แก้ตัวแดงๆ ให้ตรงกับเครื่องคุณเองด้วยนะครับ<br />
- อันบนเอาบรรทัดสุดท้ายจากคำสั่ง apxs มา<br />
- อันล่างเอาเป็น ip ของเครื่อง squid</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family: monospace;">LoadModule rpaf_module <span style="color: red; font-weight: bold;">/usr/lib64/httpd/modules/mod_rpaf-2.0.so</span>
RPAFenable On
RPAFsethostname Off
RPAFproxy_ips <span style="color: red; font-weight: bold;">127.0.0.1</span>
RPAFheader X-Forwarded-For</pre>
</div>
</div>
<p>ถ้าใช้ตัวนี้ ก็เอา ipfix.php ออกไปได้เลยครับ</p>
<p><strong>บทความที่เกี่ยวข้อง</strong><br />
- <a href="http://www.icez.net/blog/59/squid-26-as-reverse-transparent-proxy">0052 | squid 2.6 as reverse transparent proxy</a><br />
- <a href="http://www.icez.net/blog/60/%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b9%81%e0%b8%96%e0%b8%a1-reverse-proxy-ipfix-php">0053 | ของแถม reverse proxy ipfix.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.icez.net/blog/131/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-ip-%e0%b9%83%e0%b8%99-log-apache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95%e0%b8%a3%e0%b8%87/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.icez.net @ 2012-02-10 17:28:50 -->
