<?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>WP Engineer &#187; proxy</title>
	<atom:link href="http://wpengineer.com/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Mon, 21 May 2012 22:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress Proxysupport</title>
		<link>http://wpengineer.com/1227/wordpress-proxysupport/</link>
		<comments>http://wpengineer.com/1227/wordpress-proxysupport/#comments</comments>
		<pubDate>Fri, 15 May 2009 10:58:13 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[Constants]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress 2.8]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[WP]]></category>
		<category><![CDATA[wp2.8]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=1227</guid>
		<description><![CDATA[Who is using WordPress in an intranet environment, will quickly realize, that despite internet connection, no feed content gets loaded in the backend. In general, it's because of the proxy of the company. So far WordPress wasn't particularly flexible in this case. As of WordPress 2.8 that will change and new constants make ensure that [...]]]></description>
			<content:encoded><![CDATA[<p>Who is using WordPress in an intranet environment, will quickly realize, that despite internet connection, no feed content gets loaded in the backend. In general, it's because of the proxy of the company. So far WordPress wasn't particularly flexible in this case. As of WordPress 2.8 that will change and new constants make ensure that you now can enter the proxy directly to <code>wp-config.php</code>.<br />
<span id="more-1227"></span></p>
<h3>Until WordPress 2.7</h3>
<p>Up to this version of WordPress it works only with an adjustment in the core, in <code>wp-includes/class-snoopy.php</code>. Here you have to change the settings of <code>$proxy_host</code>, <code>$proxy_port</code> and <code>$_isproxy</code>. The value of var <code>$_isproxy = false;</code> will of course have <code>TRUE</code> as value.</p>
<pre lang="php">
var $host       = &quot;www.php.net&quot;; // host name we are connecting to
var $port       = 8080; // port we are connecting to
var $proxy_host = &quot;&quot;; // proxy host to use
var $proxy_port = &quot;&quot;; // proxy port to use
var $proxy_user = &quot;&quot;; // proxy user to use
var $proxy_pass = &quot;&quot;; // proxy password to use
var $_isproxy   = true; // set if using a proxy server
</pre>
<h3>WordPress 2.8</h3>
<p>With the new version it is much easier, because no more intrusion into the core files is necessary and the possibility to define the values in the configuration file <code>wp-config.php</code>.</p>
<pre lang="php">
define(&#039;WP_PROXY_HOST&#039;, &#039;192.168.84.101&#039;);
define(&#039;WP_PROXY_PORT&#039;, &#039;8080&#039;);
define(&#039;WP_PROXY_USERNAME&#039;, &#039;my_user_name&#039;);
define(&#039;WP_PROXY_PASSWORD&#039;, &#039;my_password&#039;);
define(&#039;WP_PROXY_BYPASS_HOSTS&#039;, &#039;localhost, www.example.com&#039;);
</pre>
<p>Various references are also in<a href="http://core.trac.wordpress.org/ticket/4011">Ticket 4011</a>.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/1227/wordpress-proxysupport/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

