<?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"
	>
<channel>
	<title></title>
	<atom:link href="http://www.pubbs.net/feed.nginx.200907.58211.xml" rel="self" type="application/rss+xml" />
	<link>try_files and static web site</link>
	<description>try_files and static web site</description>
	<pubDate>2009-07-07T05:51:30+00:00</pubDate>
	<generator>PubbsBot</generator>
	<language>utf-8</language>
<item>
<title>try_files and static web site</title>
<link>http://www.pubbs.net/nginx/200907/58211/</link>
<pubDate>2009-07-07T05:51:30+00:00</pubDate>
<dc:creator>Jauder Ho</dc:creator>
<category><![CDATA[nginx,200907]]></category>
<guid isPermaLink="true">http://www.pubbs.net/nginx/200907/58211/</guid>
<description><![CDATA[I have a site that is completely static and I figured I would use
try-files however this results in HTTP 500 errors for directories i.e.
trying to get to http://foo.com/bar/ results in a 500 error. What&#039;s
wrong with this config? Thanks.

    charset utf-8;

    # sets the domain[s] that this vhost server requests for
    server-name www.foo.com;

    # doc root
    root /var/www/foo.com;

    # vhost specific access log
    access-log  /var/log/nginx-access.log  main;


    # Catchall for everything else
    location / {
      root /var/www/foo.com;
      access-log off;

      index index.html index.shtml;
      expires 1d;

      try-files $uri $uri/;

      #if (-f $request-filename) {
      #  break;
      #}
    }



    error-page 500 502 503 504 /500.html;
    error-page 404 /404.html;

  }
]]></description>
<content:encoded><![CDATA[I have a site that is completely static and I figured I would use
try-files however this results in HTTP 500 errors for directories i.e.
trying to get to http://foo.com/bar/ results in a 500 error. What&#039;s
wrong with this config? Thanks.

    charset utf-8;

    # sets the domain[s] that this vhost server requests for
    server-name www.foo.com;

    # doc root
    root /var/www/foo.com;

    # vhost specific access log
    access-log  /var/log/nginx-access.log  main;


    # Catchall for everything else
    location / {
      root /var/www/foo.com;
      access-log off;

      index index.html index.shtml;
      expires 1d;

      try-files $uri $uri/;

      #if (-f $request-filename) {
      #  break;
      #}
    }



    error-page 500 502 503 504 /500.html;
    error-page 404 /404.html;

  }

<ul>
<li><a href="http://www.pubbs.net/nginx/200907/58211/" title="try_files and static web site">try_files and static web site</a> by Jauder Ho on <i>2009-07-07T05:51:30+00:00</i></li>
<li><a href="http://www.pubbs.net/nginx/200907/58229/" title="Re: try_files and static web site">Re: try_files and static web site</a> by Michael Shadle on <i>2009-07-07T06:00:17+00:00</i></li>
</ul>]]></content:encoded>
</item>
</channel>
</rss>