<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using Nginx as a Reverse Proxy to Get the Most Out of Your VPS.</title>
	<atom:link href="http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html</link>
	<description>Ubuntu Linux Tutorials,Howtos,Tips &#38; News &#124; Oneiric,Natty,Maverick</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-120500</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 27 Jan 2012 12:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-120500</guid>
		<description>hey guys,

i got some problems with the trailing slash of the url´s.

eg: link is my-domain.tld/forum/lotto/ this works,
if users type .../lotto u´ll get this site doesnt exist on this webserver and the link in the browser shows my-domain.tld:8080/forum/lotto

no errors in nginx logs, only in apache2 logs, and the error says the following:
[error] [client xx.xx.xx.xx] File does not exist: /etc/apache2/htdocs
[debug] mod_deflate.c(615): [client xx.xx.xx.xx] Zlib: Compressed 210 to 164 : URL /forum/lotto/

so how can i fix this problem? maybe you could help me pls?

thx in advice!

greetz Mike</description>
		<content:encoded><![CDATA[<p>hey guys,</p>
<p>i got some problems with the trailing slash of the url´s.</p>
<p>eg: link is my-domain.tld/forum/lotto/ this works,<br />
if users type &#8230;/lotto u´ll get this site doesnt exist on this webserver and the link in the browser shows my-domain.tld:8080/forum/lotto</p>
<p>no errors in nginx logs, only in apache2 logs, and the error says the following:<br />
[error] [client xx.xx.xx.xx] File does not exist: /etc/apache2/htdocs<br />
[debug] mod_deflate.c(615): [client xx.xx.xx.xx] Zlib: Compressed 210 to 164 : URL /forum/lotto/</p>
<p>so how can i fix this problem? maybe you could help me pls?</p>
<p>thx in advice!</p>
<p>greetz Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Estiko</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-120315</link>
		<dc:creator>Estiko</dc:creator>
		<pubDate>Tue, 24 Jan 2012 10:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-120315</guid>
		<description>I want to ask, how do I configure Nginx as a proxy in webmin?</description>
		<content:encoded><![CDATA[<p>I want to ask, how do I configure Nginx as a proxy in webmin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arty</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-95091</link>
		<dc:creator>Arty</dc:creator>
		<pubDate>Sun, 13 Mar 2011 07:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-95091</guid>
		<description>I am testing Nginx as a proxy in front of Apache2 and it works great except nginx disables all my rewrites.  301&#039;s do not appear and I have tried about a dozen configurations including proxy_redirect.

Any idea how to keep my 301&#039;s so that my site has a canonical element?

My detailed configs are here:
http://forum.nginx.org/read.php?11,182132</description>
		<content:encoded><![CDATA[<p>I am testing Nginx as a proxy in front of Apache2 and it works great except nginx disables all my rewrites.  301&#8242;s do not appear and I have tried about a dozen configurations including proxy_redirect.</p>
<p>Any idea how to keep my 301&#8242;s so that my site has a canonical element?</p>
<p>My detailed configs are here:<br />
<a href="http://forum.nginx.org/read.php?11,182132" rel="nofollow">http://forum.nginx.org/read.php?11,182132</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacqueline</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-94963</link>
		<dc:creator>Jacqueline</dc:creator>
		<pubDate>Sat, 12 Mar 2011 08:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-94963</guid>
		<description>Hi, I&#039;m trying to do a failover for load balancer. I have 2 load balancer, I want to make sure that if one load balancer is down, all my request will be to the other load balancer. This is to ensure that I have no single point of failure. Is it possible to use nginx for this? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m trying to do a failover for load balancer. I have 2 load balancer, I want to make sure that if one load balancer is down, all my request will be to the other load balancer. This is to ensure that I have no single point of failure. Is it possible to use nginx for this? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean Ezra</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-86597</link>
		<dc:creator>Dean Ezra</dc:creator>
		<pubDate>Sat, 01 Jan 2011 17:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-86597</guid>
		<description>I find the following configuration lines more useful instead of keeping my status files separate from dynamic in different folders:

Instead the following lines simply detect the static files file extensions and only proxy pass onto apache for php scripts:


server { # simple reverse-proxy
listen 80;
server_name domain2.com www.domain2.com;
access_log logs/domain2.access.log main;
# serve static files
location ~ ^/(images&#124;javascript&#124;js&#124;css&#124;flash&#124;media&#124;static)/ {
root /var/www/htdocs;
expires 30d;
}

# pass requests for dynamic content to apache
location / {
proxy_pass http://127.0.0.1:8080;
include /etc/nginx/proxy.conf;
}
}

NOTE: I make nginx and apache root and docroots point to the same file dir:

Of course, both approaches work, just preference really.

Great tutorial!</description>
		<content:encoded><![CDATA[<p>I find the following configuration lines more useful instead of keeping my status files separate from dynamic in different folders:</p>
<p>Instead the following lines simply detect the static files file extensions and only proxy pass onto apache for php scripts:</p>
<p>server { # simple reverse-proxy<br />
listen 80;<br />
server_name domain2.com <a href="http://www.domain2.com" rel="nofollow">http://www.domain2.com</a>;<br />
access_log logs/domain2.access.log main;<br />
# serve static files<br />
location ~ ^/(images|javascript|js|css|flash|media|static)/ {<br />
root /var/www/htdocs;<br />
expires 30d;<br />
}</p>
<p># pass requests for dynamic content to apache<br />
location / {<br />
proxy_pass <a href="http://127.0.0.1:8080" rel="nofollow">http://127.0.0.1:8080</a>;<br />
include /etc/nginx/proxy.conf;<br />
}<br />
}</p>
<p>NOTE: I make nginx and apache root and docroots point to the same file dir:</p>
<p>Of course, both approaches work, just preference really.</p>
<p>Great tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Anchor</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-57429</link>
		<dc:creator>Bob Anchor</dc:creator>
		<pubDate>Sat, 13 Nov 2010 22:14:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-57429</guid>
		<description>Nice tutorial. I&#039;m getting ready to try this out.</description>
		<content:encoded><![CDATA[<p>Nice tutorial. I&#8217;m getting ready to try this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philo Kezzar</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-54121</link>
		<dc:creator>Philo Kezzar</dc:creator>
		<pubDate>Wed, 20 Oct 2010 21:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-54121</guid>
		<description>Hi, I exactly followed your tutorials and thanks a lot for your effort.
All servers seem to work as intended however, when I check apache2 access log, I see all static files request logs.
Does it mean apache still handle the static files?
What should I do?

ps., memory footprint seems jump from 52MB to 115MB after this setup.</description>
		<content:encoded><![CDATA[<p>Hi, I exactly followed your tutorials and thanks a lot for your effort.<br />
All servers seem to work as intended however, when I check apache2 access log, I see all static files request logs.<br />
Does it mean apache still handle the static files?<br />
What should I do?</p>
<p>ps., memory footprint seems jump from 52MB to 115MB after this setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ro</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-23514</link>
		<dc:creator>Ro</dc:creator>
		<pubDate>Fri, 26 Feb 2010 10:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-23514</guid>
		<description>@Omid

Make sure the director structure exists.</description>
		<content:encoded><![CDATA[<p>@Omid</p>
<p>Make sure the director structure exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omid</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-21679</link>
		<dc:creator>Omid</dc:creator>
		<pubDate>Mon, 01 Feb 2010 02:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-21679</guid>
		<description>Hi, I followed the instruction but at the end when I run 

/etc/init.d/nginx restart
I get:
/var/www/subdomain.example.com/log/nginx.access.log&quot; failed (2: No such file or directory)

What do I miss? 
Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I followed the instruction but at the end when I run </p>
<p>/etc/init.d/nginx restart<br />
I get:<br />
/var/www/subdomain.example.com/log/nginx.access.log&#8221; failed (2: No such file or directory)</p>
<p>What do I miss?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-10100</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 18 Jun 2009 19:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-10100</guid>
		<description>@annie

you might have to enable the universe section of the official repository.</description>
		<content:encoded><![CDATA[<p>@annie</p>
<p>you might have to enable the universe section of the official repository.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drewtown</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-10092</link>
		<dc:creator>drewtown</dc:creator>
		<pubDate>Thu, 18 Jun 2009 14:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-10092</guid>
		<description>make sure you run
sudo apt-get update
and
sudo apt-get upgrade

before you try to install any new packages.  Your command is correct and as of Hardy has been in the Universe repository.</description>
		<content:encoded><![CDATA[<p>make sure you run<br />
sudo apt-get update<br />
and<br />
sudo apt-get upgrade</p>
<p>before you try to install any new packages.  Your command is correct and as of Hardy has been in the Universe repository.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Annie Steephan</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-10066</link>
		<dc:creator>Annie Steephan</dc:creator>
		<pubDate>Wed, 17 Jun 2009 12:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-10066</guid>
		<description>I am new to ubuntu, i run

root@server84:/etc/apt# apt-get install nginx
Reading package lists... Done
Building dependency tree... Done
E: Couldn&#039;t find package nginx
root@server84:/etc/apt#

It says no ngnix, os is Ubuntu 9.04

How do i get ngnix working ?</description>
		<content:encoded><![CDATA[<p>I am new to ubuntu, i run</p>
<p>root@server84:/etc/apt# apt-get install nginx<br />
Reading package lists&#8230; Done<br />
Building dependency tree&#8230; Done<br />
E: Couldn&#8217;t find package nginx<br />
root@server84:/etc/apt#</p>
<p>It says no ngnix, os is Ubuntu 9.04</p>
<p>How do i get ngnix working ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Town</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-9926</link>
		<dc:creator>Drew Town</dc:creator>
		<pubDate>Sun, 14 Jun 2009 02:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-9926</guid>
		<description>James,

Here is the thing, the two are directly related which is why I said it is important to have a static folder.  

location /static {
  root   /var/www/example.com/htdocs/;
  expires     max;
  }

These few lines tell Nginx that everything in the static folder it should handle by finding in the /var/www/example.com/htdocs/ folder.  So anything coming into such as /static/css/style.css will be handled by Nginx because it is missing the proxy_pass command for this folder.  Where as example.com/index.php will be passed to Apache.

This really works out well because if you only wanted Nginx to server your user uploaded images you would just have the location /wp-content/uploads/ command and apache would be passed everything else.  I would definitely recommend having Nginx handle your css and js as we&#039;ve seen great performance increases using this technique.

Overall it took me about 15-20 minutes to get setup and running.</description>
		<content:encoded><![CDATA[<p>James,</p>
<p>Here is the thing, the two are directly related which is why I said it is important to have a static folder.  </p>
<p>location /static {<br />
  root   /var/www/example.com/htdocs/;<br />
  expires     max;<br />
  }</p>
<p>These few lines tell Nginx that everything in the static folder it should handle by finding in the /var/www/example.com/htdocs/ folder.  So anything coming into such as /static/css/style.css will be handled by Nginx because it is missing the proxy_pass command for this folder.  Where as example.com/index.php will be passed to Apache.</p>
<p>This really works out well because if you only wanted Nginx to server your user uploaded images you would just have the location /wp-content/uploads/ command and apache would be passed everything else.  I would definitely recommend having Nginx handle your css and js as we&#8217;ve seen great performance increases using this technique.</p>
<p>Overall it took me about 15-20 minutes to get setup and running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James D Kirk</title>
		<link>http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your-vps.html/comment-page-1#comment-9830</link>
		<dc:creator>James D Kirk</dc:creator>
		<pubDate>Wed, 10 Jun 2009 19:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=1191#comment-9830</guid>
		<description>Thank you so much for writing up this tutorial. There is a ton of info out there on setting up Nginx with Apache, and having it so cleanly laid out is nice.

A couple of clarifying questions would be helpful before jumping into the fray:

1. I&#039;m not seeing any declarations of the types of static files that Nginx would handle in your examples unless it is the &quot;application/octet-stream&quot; or the fact that you are gzipping the static files and that is where they are declared.

2. You mention it a wise choice to organize static files together in structures like

&quot;/static-folder/static-file.img-type&quot;

Is this &quot;required&quot; for Nginx or simply &quot;better&quot;? And either way, does this imply that if Nginx is to serve those files, they have to be located there versus where a CMS might place them (for instance, WordPress placing uploaded images into the wp-content/uploads/ directory)?

Thanks again. Looking forward to your thoughts on the above.</description>
		<content:encoded><![CDATA[<p>Thank you so much for writing up this tutorial. There is a ton of info out there on setting up Nginx with Apache, and having it so cleanly laid out is nice.</p>
<p>A couple of clarifying questions would be helpful before jumping into the fray:</p>
<p>1. I&#8217;m not seeing any declarations of the types of static files that Nginx would handle in your examples unless it is the &#8220;application/octet-stream&#8221; or the fact that you are gzipping the static files and that is where they are declared.</p>
<p>2. You mention it a wise choice to organize static files together in structures like</p>
<p>&#8220;/static-folder/static-file.img-type&#8221;</p>
<p>Is this &#8220;required&#8221; for Nginx or simply &#8220;better&#8221;? And either way, does this imply that if Nginx is to serve those files, they have to be located there versus where a CMS might place them (for instance, WordPress placing uploaded images into the wp-content/uploads/ directory)?</p>
<p>Thanks again. Looking forward to your thoughts on the above.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

