Welcome! Log In Create A New Profile

Advanced

Re: Minimal configuration

B.R.
February 16, 2014 02:46PM
Thanks for your input Francis.
What I suspected seemed old but I really don't understand the problem I am
facing.

Consider the following server configuration for some phpBB forum:
server {
listen 80;
server_name b.cd;
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 b.cd in the browser ends up wth a HTTP 500 error:
'[error] 12345#0: *42 rewrite or internal redirection cycle while
internally redirecting to "/", client: 12.34.56.78, server: b.cd, request:
"GET / HTTP/1.1", host: "b.cd"'

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.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Minimal configuration

B.R. February 15, 2014 06:32AM

Re: Minimal configuration

Francis Daly February 15, 2014 04:56PM

Re: Minimal configuration

B.R. February 16, 2014 02:46PM

Re: Minimal configuration

Francis Daly February 16, 2014 04:40PM

Re: Minimal configuration

B.R. February 16, 2014 05:02PM

Re: Minimal configuration

Francis Daly February 16, 2014 05:26PM

Re: Minimal configuration

B.R. February 16, 2014 06:44PM

Re: Minimal configuration

Francis Daly February 17, 2014 03:44AM

Re: Minimal configuration

B.R. February 17, 2014 08:16AM

Re: Minimal configuration

Francis Daly February 17, 2014 03:38PM

Re: Minimal configuration

B.R. February 17, 2014 05:18PM

Re: Minimal configuration

Francis Daly February 20, 2014 04:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready