<?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, Tipps, Tutorials, Plugins and Themes</description> <lastBuildDate>Wed, 28 Jul 2010 13:37:05 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=2442</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>WordPress Proxysupport</title><link>http://wpengineer.com/wordpress-proxysupport/</link> <comments>http://wpengineer.com/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><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$host</span>       <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;www.php.net&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// host name we are connecting to</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$port</span>       <span style="color: #339933;">=</span> <span style="color: #cc66cc;">8080</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// port we are connecting to</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$proxy_host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// proxy host to use</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$proxy_port</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// proxy port to use</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$proxy_user</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// proxy user to use</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$proxy_pass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// proxy password to use</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$_isproxy</span>   <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// set if using a proxy server</span></pre></div></div><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><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_PROXY_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'192.168.84.101'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_PROXY_PORT'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'8080'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_PROXY_USERNAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_user_name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_PROXY_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_PROXY_BYPASS_HOSTS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'localhost, www.example.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Various references are also in<a
href="http://core.trac.wordpress.org/ticket/4011" class="liwp">Ticket 4011</a>.<br
/><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/wordpress-proxysupport/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Database Caching 18/29 queries in 0.043 seconds using disk
Object Caching 371/428 objects using disk

Served from: wpengineer.com @ 2010-07-29 13:45:54 -->