<?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>Wordpress API &#187; Nginx</title>
	<atom:link href="http://wordpressapi.com/category/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpressapi.com</link>
	<description>Wordpress Tutorials, Tips, Code, Hacks, Themes, plugin, Developer Code book -Wordpress Code, Themes, Plugins, Tips, Tutorials, News, Releases, Designs, Hacks, Tricks, Blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:48:14 +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>How to remove the www from URL with nginx server</title>
		<link>http://wordpressapi.com/2010/03/07/remove-www-url-nginx-server/</link>
		<comments>http://wordpressapi.com/2010/03/07/remove-www-url-nginx-server/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 05:04:48 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx server]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=1736</guid>
		<description><![CDATA[http://wordpressapi.com/2010/03/07/remove-www-url-nginx-server/Nginx web server is becoming most popular in last year. Best server response time and minimum execution time is the advantages of Nginx server. Many people want to remove the www from URL. I will tell you the tip how &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/03/07/remove-www-url-nginx-server/<p><a href="http://images.wordpressapi.com/nginx-control-panel.jpg"><img class="size-medium wp-image-1737 alignleft" style="margin: 5px" title="nginx-control-panel" src="http://images.wordpressapi.com/nginx-control-panel-300x206.jpg" alt="" width="300" height="206" /></a>Nginx web server is becoming most popular in last year. Best server response time and minimum execution time is the advantages of Nginx server.</p>
<p>Many people want to remove the www from URL. I will tell you the tip how to remove the www from URL with nginx server.</p>
<p>Open your Ngnix configuration file (nginx.conf). Just use following code in server block.</p>
<pre>if ($host ~* ^www\.(.*)) {
    set $remove_www $1;
    rewrite ^(.*)$ http://$remove_www$1 permanent;
}</pre>
<p>This code will remove the www from the URL.</p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/03/07/remove-www-url-nginx-server/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>How to install php &#8211; memcached server on centos5 or any linux OS</title>
		<link>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/</link>
		<comments>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 05:32:21 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Memcached]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[centos5]]></category>
		<category><![CDATA[installtion]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=1119</guid>
		<description><![CDATA[http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/What is Memcached? Free &#38; open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/<p>What is Memcached?<br />
Free &amp; open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.</p>
<p><a href="http://images.wordpressapi.com/memcached_banner75.jpg"><img class="alignleft size-medium wp-image-1120" title="memcached_banner75" src="http://images.wordpressapi.com/memcached_banner75-300x55.jpg" alt="memcached_banner75" width="300" height="55" /></a></p>
<p>Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.</p>
<p>Please use following commands for installtion;<br />
[root@ip-192-168-2-125 wordpressapi]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm</p>
<p>[root@ip-192-168-2-125 wordpressapi]# yum remove php-common</p>
<p>[root@ip-192-168-2-125 wordpressapi]# yum install php-pdo php-mcrypt squirrelmail php-pecl-apc php-xml php-gd php-devel php php-imap php-pgsql php-pear php-soap php-mbstring php-ldap php-mysql php-cli php-pecl-memcache</p>
<p>[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/memcached restart<br />
Shutting down Distributed memory caching (memcached):      [  OK  ]<br />
Starting Distributed memory caching (memcached):           [  OK  ]</p>
<p>[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/httpd restart<br />
Stopping httpd:                                            [  OK  ]<br />
Starting httpd:                                            [  OK  ]</p>
<p>[root@ip-192-168-2-125 wordpressapi]# vim /etc/php.ini<br />
In php.ini file Please find the &#8220;extension=modulename.extension&#8221; words<br />
Under that sentance please paste following line:<br />
extension=memcache.so<br />
Note: dont comments that line.</p>
<p>[root@ip-192-168-2-125 wordpressapi]# /etc/init.d/httpd restart<br />
Stopping httpd:                                            [  OK  ]<br />
Starting httpd:                                            [  OK  ]<br />
[root@ip-192-168-2-125 wordpressapi]#</p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/02/16/install-php-memcached-server-centos5-linux-os/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>How to install Nginx with PHP on Ubuntu</title>
		<link>http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/</link>
		<comments>http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 08:53:54 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=923</guid>
		<description><![CDATA[http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/For this tutorial I am using the Ubuntu 8.10 linux version. Install Nginx # sudo apt-get install nginx If apache server is installed on your machine then please stop the apache server first. #sudo /etc/init.d/nginx start #sudo update-rc.d nginx defaults &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/<p>For this tutorial I am using the Ubuntu 8.10 linux version.</p>
<p>Install Nginx<br />
# sudo apt-get install nginx</p>
<p>If apache server is installed on your machine then please stop the apache server first.</p>
<p>#sudo /etc/init.d/nginx start</p>
<p>#sudo update-rc.d nginx defaults</p>
<p>Install PHP5</p>
<p>#sudo apt-get install php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</p>
<p>Open the PHP.ini file</p>
<p>#sudo vim /etc/php5/cgi/php.ini</p>
<p>Insert following line at the end of php.ini file<br />
cgi.fix_pathinfo = 1</p>
<p>Install the lighttpd server</p>
<p>#sudo apt-get install lighttpd</p>
<p>You will see an error message saying that lighttpd couldn&#8217;t start because port 80 is already in use.</p>
<p>For removing the error message use following command</p>
<p>#sudo update-rc.d -f lighttpd remove</p>
<p>Start the FastCGI daemon service</p>
<p>#sudo /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid</p>
<p>If you want run following command whenever you boot the system. Open following file.</p>
<p>#sudo vim /etc/rc.local</p>
<p>Copy paste following following lines in file.</p>
<p>/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid</p>
<p>Configuration Nginx</p>
<p>#sudo vim /etc/nginx/nginx.conf<br />
Just copy paste the following code in end of httpd block. Dont paste outside of http block.</p>
<p>server {<br />
listen   80;<br />
server_name  _;</p>
<p>access_log  /var/log/nginx/localhost.access.log;</p>
<p>location / {<br />
root   /var/www/nginx-default;<br />
index  index.php index.html index.htm;<br />
}</p>
<p>location /doc {<br />
root   /usr/share;<br />
autoindex on;<br />
allow 127.0.0.1;<br />
deny all;<br />
}</p>
<p>location /images {<br />
root   /usr/share;<br />
autoindex on;<br />
}</p>
<p>#error_page  404  /404.html;</p>
<p># redirect server error pages to the static page /50x.html<br />
#<br />
error_page   500 502 503 504  /50x.html;<br />
location = /50x.html {<br />
root   /var/www/nginx-default;<br />
}</p>
<p># proxy the PHP scripts to Apache listening on 127.0.0.1:80<br />
#<br />
#location ~ \.php$ {<br />
#proxy_pass   http://127.0.0.1;<br />
#}</p>
<p># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br />
#<br />
location ~ \.php$ {<br />
fastcgi_pass   127.0.0.1:9000;<br />
fastcgi_index  index.php;<br />
fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default$fastcgi_script_name;<br />
include        fastcgi_params;<br />
}</p>
<p># deny access to .htaccess files, if Apache&#8217;s document root<br />
# concurs with nginx&#8217;s one<br />
#<br />
location ~ /\.ht {<br />
deny  all;<br />
}<br />
}</p>
<p><a href="http://images.wordpressapi.com/nginx-server.png"><img class="alignnone size-medium wp-image-924" title="nginx-server" src="http://images.wordpressapi.com/nginx-server-300x217.png" alt="nginx-server" width="300" height="217" /></a></p>
<p>Just restart the Nginx server.</p>
<p>#sudo /etc/init.d/nginx restart</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/" title="how to place data nginx">how to place data nginx</a></li><li><a href="http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/" title="upload_max no funciona nginx php ini">upload_max no funciona nginx php ini</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/02/10/install-nginx-php-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nginx wordpress plugins and mannual nginx setup for worpdress</title>
		<link>http://wordpressapi.com/2010/02/01/nginx-wordpress-plugins-mannual-nginx-setup-worpdress/</link>
		<comments>http://wordpressapi.com/2010/02/01/nginx-wordpress-plugins-mannual-nginx-setup-worpdress/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:44:25 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>

		<guid isPermaLink="false">http://images.wordpressapi.com/?p=700</guid>
		<description><![CDATA[http://wordpressapi.com/2010/02/01/nginx-wordpress-plugins-mannual-nginx-setup-worpdress/Nginx is becoming very popular to host the websites. For hosting your wordpress website on Nginx server is the best option. If you have dedicated server then go with nginx server. I found two plugins which are supported to Nginx &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2010/02/01/nginx-wordpress-plugins-mannual-nginx-setup-worpdress/<p>Nginx is becoming very popular to host the websites. For hosting your wordpress website on Nginx server is the best option.</p>
<p>If you have dedicated server then go with nginx server.</p>
<p><a href="http://images.wordpressapi.com/wordpress-nginx-logos.jpg"><img class="alignnone size-thumbnail wp-image-701" title="wordpress-nginx-logos" src="http://images.wordpressapi.com/wordpress-nginx-logos-150x150.jpg" alt="wordpress-nginx-logos" width="150" height="150" /></a></p>
<p>I found two plugins which are supported to Nginx installtion. But both plugins are not give you nginx rule for setup nginx rule.</p>
<p><a href="http://wordpress.org/extend/plugins/nginx-compatibility/" target="_blank">http://wordpress.org/extend/plugins/nginx-compatibility/</a><br />
<a href="http://wordpress.org/extend/plugins/nginx-proxy-cache-integrator/" target="_blank">http://wordpress.org/extend/plugins/nginx-proxy-cache-integrator/</a></p>
<p>Now I will show you how setup wordpress site on Nginx server.</p>
<p>Just put following code in your nginx.conf file. This code will fix the wordpress permalink issue also.</p>
<p>server {<br />
listen 80;<br />
server_name localhost.localdomain;<br />
# access_log logs/site.access.log;</p>
<p>location / {<br />
root /usr/share/nginx/html;<br />
index index.php;</p>
<p>if (!-e $request_filename) {<br />
rewrite ^.+?(/wp-.*) /$1 last;<br />
rewrite ^.+?(/.*\.php)$ /$1 last;<br />
rewrite ^(.+)$ /index.php?q=$1 last;<br />
break;<br />
}</p>
<p>location = /50x.html {<br />
fastcgi_pass  localhost:9999;<br />
fastcgi_index index.php;<br />
fastcgi_param SCRIPT_NAME $fastcgi_script_name;<br />
fastcgi_param REQUEST_URI $request_uri;<br />
fastcgi_param DOCUMENT_URI $document_uri;<br />
fastcgi_param DOCUMENT_ROOT $document_root;<br />
fastcgi_param REMOTE_ADDR $remote_addr;<br />
fastcgi_param REMOTE_PORT $remote_port;<br />
fastcgi_param SERVER_ADDR $server_addr;<br />
fastcgi_param SERVER_PORT $server_port;<br />
fastcgi_param SERVER_NAME $server_name;<br />
fastcgi_param SCRIPT_FILENAME  /var/www/example.com$fastcgi_script_name;<br />
fastcgi_param QUERY_STRING $query_string;<br />
fastcgi_param REQUEST_METHOD $request_method;<br />
fastcgi_param CONTENT_TYPE $content_type;<br />
fastcgi_param CONTENT_LENGTH $content_length;<br />
root /var/www/nginx-default;<br />
}</p>
<p>}</p>
<p>Note: Dont forgot to install fastcgi on your server. Start the fastcgi server on port no 9000(which is default port)</p>
<p>For wordpressMu use following URL</p>
<p><a href="//wordpressapi.com/files/nginx-rule-for-wordpressmu-with-pretty-url/" target="_blank">http://images.wordpressapi.com/nginx-rule-for-wordpressmu-with-pretty-url/</a></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2010/02/01/nginx-wordpress-plugins-mannual-nginx-setup-worpdress/" title="nginx wordpress 3 3">nginx wordpress 3 3</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2010/02/01/nginx-wordpress-plugins-mannual-nginx-setup-worpdress/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Solved:trailing slash issue with Nginx server</title>
		<link>http://wordpressapi.com/2009/12/16/solved-trailing-slash-issue-with-nginx-server/</link>
		<comments>http://wordpressapi.com/2009/12/16/solved-trailing-slash-issue-with-nginx-server/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 10:19:31 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[nginx server]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/?p=354</guid>
		<description><![CDATA[http://wordpressapi.com/2009/12/16/solved-trailing-slash-issue-with-nginx-server/I added following block in my nginx.conf file. You should add following lines in your server { } block. If you want use URL without ending trailing slash. then use following code. #code block added for trailing slash issue solving &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/12/16/solved-trailing-slash-issue-with-nginx-server/<div id="_mcePaste">I added following block in my nginx.conf file. You should add following lines in your server { } block.</div>
<div id="_mcePaste">If you want use URL without ending trailing slash. then use following code.</div>
<div></div>
<div id="_mcePaste"><span style="color:#0000ff">#code block added for trailing slash issue solving</span></div>
<div id="_mcePaste"><span style="color:#0000ff">server_name_in_redirect off;</span></div>
<div id="_mcePaste"><span style="color:#0000ff">optimize_server_names off;</span></div>
<div id="_mcePaste"><span style="color:#0000ff">dav_methods PUT DELETE MKCOL COPY MOVE;</span></div>
<div id="_mcePaste"><span style="color:#0000ff">dav_access group:rw all:r;</span></div>
<div id="_mcePaste"><span style="color:#0000ff">create_full_put_path on;</span></div>
<div><span style="color:#0000ff"><br />
</span></div>
<div id="_mcePaste"><span style="color:#0000ff">if (-d $request_filename) { rewrite ^(.*[^/])$ $1/ break; }</span></div>
<div id="_mcePaste"><span style="color:#0000ff">if ($request_method = MKCOL) { rewrite ^(.*[^/])$ $1/ break; }</span></div>
<div></div>
<div id="_mcePaste">Above code will check if folder is present then fetch data from there. If you have some idea about MKCOL then you will know above code in better way.</div>
<div id="_mcePaste">If Your problem will not solved from above code then use following code.</div>
<div></div>
<div id="_mcePaste"><span style="color:#0000ff">#here we are adding trailing slash end of Url</span></div>
<div id="_mcePaste"><span style="color:#0000ff">if ($request_uri ~* &#8220;^[\w\-\/]+[^\/?]$&#8221;) {rewrite ^(.*)$ $scheme://$host$1/ permanent;}</span></div>
<div id="_mcePaste">This will add the ending slash to your url.</div>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2009/12/16/solved-trailing-slash-issue-with-nginx-server/" title="nginx add missing slash to url">nginx add missing slash to url</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/12/16/solved-trailing-slash-issue-with-nginx-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx rule with image fix for multiple wordpress instance</title>
		<link>http://wordpressapi.com/2009/11/26/nginx-rule-with-image-fix-for-multiple-wordpress-instance/</link>
		<comments>http://wordpressapi.com/2009/11/26/nginx-rule-with-image-fix-for-multiple-wordpress-instance/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:37:07 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress api]]></category>
		<category><![CDATA[wordpress hacks]]></category>
		<category><![CDATA[wordpress tutorials]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/2009/11/26/nginx-rule-with-image-fix-for-multiple-wordpress-instance/</guid>
		<description><![CDATA[http://wordpressapi.com/2009/11/26/nginx-rule-with-image-fix-for-multiple-wordpress-instance/I sovled the issue with Wordprss and Images. If you want to host or install two instances on one domain in that senorio you can use following code. Please Use the following code; location ~ ^.+\.(html&#124;jpg&#124;jpeg&#124;gif&#124;png&#124;ico&#124;css&#124;zip&#124;tgz&#124;gz&#124;rar&#124;bz2&#124;doc&#124;xls&#124;exe&#124;pdf&#124;ppt&#124;txt&#124;tar&#124;mid&#124;midi&#124;wav&#124;bmp&#124;rtf&#124;js)$ { #images for wordpress &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/11/26/nginx-rule-with-image-fix-for-multiple-wordpress-instance/<p>I sovled the issue with Wordprss and Images. If you want to host or install two instances on one domain in that senorio you can use following code.</p>
<p>Please Use the following code;</p>
<p>   location ~ ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {<br />
   #images for wordpress instance one<br />
 if ($request_uri ~* /wordpress) {<br />
        set $set_root /usr/share/nginx/html/wordpress1;<br />
    }<br />
   #images for wordpress instance two<br />
 if ($request_uri ~* /moms) {<br />
        set $set_root /usr/share/nginx/html/wordpress2;<br />
    }</p>
<p>    root $set_root;<br />
    rewrite ^/.*(/wp-admin/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;<br />
    rewrite ^/.*(/wp-includes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;<br />
    rewrite ^/.*(/wp-content/themes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;<br />
    rewrite ^/.*(/wp-content/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;    expires 10d;<br />
    break;<br />
      }</p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/11/26/nginx-rule-with-image-fix-for-multiple-wordpress-instance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to host multiple rails site on Nginx</title>
		<link>http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/</link>
		<comments>http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 07:28:18 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/</guid>
		<description><![CDATA[http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/User following code in Nginx.conf file.. and paste into that file #vim /etc/nginx/nginx.conf Incoming search terms:multiple rails sites nginxhow to host multiple rails nginxFollow us on Twitter WordPress API]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/<p>User following code in Nginx.conf file.. and paste into that file<br />
#vim /etc/nginx/nginx.conf</p>
<pre class="brush: ruby; title: ; notranslate">

http {
include       /etc/nginx/mime.types;
default_type  application/octet-stream;
access_log  /var/log/nginx/access.log  main;
sendfile        on;

upstream mongrel_cluster_example1 {
server 127.0.0.1:8000;
server 127.0.0.1:8001;
server 127.0.0.1:8002;
}

upstream mongrel_cluster_example2 {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
server 127.0.0.1:3002;
}

# Load config files from the /etc/nginx/conf.d directory
include /etc/nginx/conf.d/*.conf;

server {
listen       80;
server_name  example1.com example2.net;
client_max_body_size 120M;

set $myroot /var/www/html;
if ($host ~* example1\.com$) {
set $myroot /home/example1/public;
}

if ($host ~* example2\.net$) {
set $myroot /home/example2/public;
}

root $myroot;

location ~* ^/(images|stylesheets|javascripts).+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root $myroot;
}

location / {

if ($host ~* example1\.com$) {
proxy_pass      http://mongrel_cluster_example1;
} #if check for domain qa.teenangel ends here

if ($host ~* example2\.net$) {
root /home/rail_project/myproject/public;
proxy_pass      http://mongrel_cluster_example2;

} #if check for domain ends here

}

}

}
</pre>
<h4>Incoming search terms:</h4><ul><li><a href="http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/" title="multiple rails sites nginx">multiple rails sites nginx</a></li><li><a href="http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/" title="how to host multiple rails nginx">how to host multiple rails nginx</a></li></ul><p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/11/18/how-to-host-multiple-rails-site-on-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use hosts file on Mac, Windows and Linux</title>
		<link>http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/</link>
		<comments>http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 09:31:08 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/</guid>
		<description><![CDATA[http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/The hosts file is a computer file used by an operating system to map hostnames to IP addresses. On many operating systems, the host file content is used preferentially over other methods, such as the Domain Name System (DNS). Unlike &#8230; Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/<p>The hosts file is a computer file used by an operating system to map hostnames to IP addresses.<br />
On many operating systems, the host file content is used preferentially over other methods,<br />
such as the Domain Name System (DNS). Unlike DNS, the hosts file is under the control of the local computer&#8217;s administrator</p>
<p>Locate the file &#8220;Hosts&#8221; on your computer:<br />
Windows<br />
Windows 95/98/Me  c:\windows\hosts<br />
Windows NT/2000/XP Pro  c:\winnt\system32\drivers\etc\hosts<br />
Windows XP Home c:\windows\system32\drivers\etc\hosts</p>
<p>Linux<br />
/etc/hosts or /etc/host.conf or /etc/nsswitch.conf</p>
<p>Symbian<br />
C:\system\data\hosts</p>
<p>Mac OS<br />
/private/etc/hosts or /etc/hosts</p>
<p>In that file you can edit entry like this</p>
<p># Do not remove the following line, or various programs<br />
# that require network functionality will fail.<br />
127.0.0.1               localhost.localdomain localhost localhost       yourlocaldomain.com , example.com<br />
::1             localhost6.localdomain6 localhost6<br />
192.168.2.200   intranet</p>
<p>directory.example.com         71.155.186.91</p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Compress the server response with Nginx</title>
		<link>http://wordpressapi.com/2009/07/02/compress-the-server-response-with-nginx/</link>
		<comments>http://wordpressapi.com/2009/07/02/compress-the-server-response-with-nginx/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 10:31:37 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/?p=113</guid>
		<description><![CDATA[Maybe you aware with apache "mod_gzip and mod deflate"

Web page compression is not a new technology, but it has recently gained higher recognition in the minds of IT administrators and managers because of the rapid ROI it generates. Compression extensions exist for most of the major Web server platforms

For Apache Normally use following syntax:
....................... Continue reading &#8594;]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/07/02/compress-the-server-response-with-nginx/<p>Maybe you aware with apache &#8220;mod_gzip and mod deflate&#8221;</p>
<p>Web page compression is not a new technology, but it has recently gained higher recognition in the minds of IT administrators and managers because of the rapid ROI it generates. Compression extensions exist for most of the major Web server platforms</p>
<p>For Apache Normally use following syntax:<br />
<code><br />
mod_gzip_item_exclude         file       \.js$<br />
mod_gzip_item_exclude         mime       ^text/css$</code></p>
<p>mod_gzip_item_include         file       \.html$<br />
mod_gzip_item_include         file       \.shtml$<br />
mod_gzip_item_include         file       \.php$<br />
mod_gzip_item_include         mime       ^text/html$</p>
<p>mod_gzip_item_include         file       \.txt$<br />
mod_gzip_item_include         mime       ^text/plain$</p>
<p>mod_gzip_item_include         file       \.css$<br />
mod_gzip_item_include         mime       ^text/css$</p>
<p>We used gzip and compressing files technology with various browers. You need following browser support for this.</p>
<div>
<ul type="disc">
<li><tt> Accept-encoding: gzip</tt></li>
<li><tt>Accept-encoding: gzip, deflate</tt></li>
</ul>
</div>
<p>For Nginx i used following code in Nginx.conf file:<br />
<code><br />
# Compression of response time<br />
gzip              on;<br />
gzip_buffers      16 8k;<br />
gzip_comp_level   9;<br />
gzip_http_version 1.0;<br />
gzip_min_length   0;<br />
gzip_types        text/plain text/html text/css image/x-icon image/png image/jpg image/jpeg text/js text/php;<br />
gzip_vary         on;<br />
</code></p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/07/02/compress-the-server-response-with-nginx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Nginx Rule for Rails Application</title>
		<link>http://wordpressapi.com/2009/07/02/nginx-rule-for-rails-application/</link>
		<comments>http://wordpressapi.com/2009/07/02/nginx-rule-for-rails-application/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 10:22:50 +0000</pubDate>
		<dc:creator>Wordpress API</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://purab.wordpress.com/?p=111</guid>
		<description><![CDATA[http://wordpressapi.com/2009/07/02/nginx-rule-for-rails-application/Use following code for setting up Nginx for rails. Follow us on Twitter WordPress API]]></description>
			<content:encoded><![CDATA[http://wordpressapi.com/2009/07/02/nginx-rule-for-rails-application/<p>Use following code for setting up Nginx for rails.</p>
<p><code>
<pre class="brush: ruby; title: ; notranslate">
http {
include       /etc/nginx/mime.types;
default_type  application/octet-stream;&lt;/code&gt;

log_format  main  '$remote_addr - $remote_user [$time_local] $request '
'&quot;$status&quot; $body_bytes_sent &quot;$http_referer&quot; '
'&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;';

access_log  /var/log/nginx/access.log  main;

# Timeouts
client_body_timeout   5;
client_header_timeout 5;
keepalive_timeout     55;
send_timeout          5;

upstream mongrel_cluster {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
server 127.0.0.1:3002;
}
server {
listen       80;
server_name  localhost.localdomain;
#charset koi8-r;
#access_log  logs/host.access.log  main;

#for images routing
location ~* ^/(images|stylesheets|javascripts).+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root /var/www/html/Projects/Project_Name/public;
}
# concurs with nginx's one

location  / {
proxy_pass	http://mongrel_cluster;
#Fix for host name and redirection to domain

}

}

&lt;code&gt;</pre>
<p></code></p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>]]></content:encoded>
			<wfw:commentRss>http://wordpressapi.com/2009/07/02/nginx-rule-for-rails-application/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: wordpressapi.com @ 2012-02-05 15:05:12 by W3 Total Cache -->
