<?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>Control WebPanel Wiki &#187; mod_cloudflare</title>
	<atom:link href="http://wiki.centos-webpanel.com/tag/mod_cloudflare/feed" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>How to install mod_cloudflare</title>
		<link>http://wiki.centos-webpanel.com/how-to-install-mod_cloudflare</link>
		<comments>http://wiki.centos-webpanel.com/how-to-install-mod_cloudflare#comments</comments>
		<pubDate>Mon, 27 May 2019 13:28:32 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_cloudflare]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1156</guid>
		<description><![CDATA[Based on mod_remoteip.c, this Apache extension will replace the remote_ip variable in the user's logs with the correct remote IP sent from Cloudflare. The module only performs the IP substitution for requests originating from Cloudflare IPs by default. In addition to this, the extension will also set the HTTPS environment variable to "on" in cases [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Based on mod_remoteip.c, this Apache extension will replace the remote_ip variable in the user's logs with the correct remote IP sent from Cloudflare. The module only performs the IP substitution for requests originating from Cloudflare IPs by default.</p>
<p>In addition to this, the extension will also set the HTTPS environment variable to "on" in cases where Flexible SSL is in use. This prevents software such as WordPress from being broken by Flexible SSL.</p>
<p><strong>Install mod-cloudflare:</strong></p>
<pre>yum install libtool git apr apr-devel apr-util apr-util-devel -y
cd /usr/local/src
git clone https://github.com/cloudflare/mod_cloudflare.git
cd mod_cloudflare
/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c</pre>
<p>Restart httpd service and confirm that <strong>mod_cloudflare</strong> has been installed:</p>
<pre>service httpd restart &amp;&amp; /usr/local/apache/bin/httpd -M|grep cloudflare
</pre>
<p><strong>More Security :</strong></p>
<p>if you need your site is only available via cloudflare IPs, you need to simply add the following to your Apache/httpd configuration file and all non-Cloudflare traffic will be forbidden with status code 403:</p>
<pre>DenyAllButCloudFlare</pre>
<p>Clouflare ip ranges can be found here :<br />
ipv4 ranges :<a href="https://www.cloudflare.com/ips-v4" target="_blank" rel="noopener"> https://www.cloudflare.com/ips-v4</a><br />
ipv6 ranges : <a href="https://www.cloudflare.com/ips-v6" target="_blank" rel="noopener">https://www.cloudflare.com/ips-v6</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/how-to-install-mod_cloudflare/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
