Minimal configuration

B.R. reallfqq-nginx at
Sun Feb 16 19:43:45 UTC 2014

Thanks for your input Francis.
What I suspected seemed old but I really don't understand the problem I am

Consider the following server configuration for some phpBB forum:
server {
        listen          80;
        try_files       $uri $uri/;

        root    /var/www/phpBB3;
        index   index.html index.htm index.php;
        include fastcgi.conf;

        location /favicon.ico {
            access_log off;
            log_not_found off;
            expires 7d;
            return 204;

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass    unix:/var/run/php5-fpm.sock;

Requesting in the browser ends up wth a HTTP 500 error:
'[error] 12345#0: *42 rewrite or internal redirection cycle while
internally redirecting to "/", client:, server:, request:
"GET / HTTP/1.1", host: ""'

Adding / at the end of try_files so it reads:
try_files       $uri $uri/ /;
solves the problem...

Really, I don't get it.
Any insight on what is going on?
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list