Page 1 of 1

VPS running nginx - using extensions

Posted: Thu Feb 05, 2015 12:14 pm
by Frederik10k
Hei there!

I just installed a fresh phpBB 3.1.3. Now I want to install a few extensions. But whenever i try to open the extensionpage like www.mydomain.com/app.php/subway-options-panel I get a 404 Not Found.

I there a config of nginx which I have to fix?

Re: VPS running nginx - using extensions

Posted: Thu Feb 05, 2015 3:21 pm
by rxu
I'm not an expert on this, but you need to put the rewrite rule to nginx config file like that

Code: Select all

try_files $uri $uri/ /app.php?$query_string;
I'm not sure where do you have the config file and thus where you'd be putting this line, this could be either the server block or location which is related to your phpBB board (the latter is preferred I assume).

Re: VPS running nginx - using extensions

Posted: Thu Feb 05, 2015 9:06 pm
by Frederik10k
Works like a charm. :)


Code: Select all

location /app.php {
        try_files $uri $uri/ /app.php?$query_string;
}

Re: VPS running nginx - using extensions

Posted: Fri Dec 23, 2016 11:26 pm
by Shamalamadindong
Apologies for bringing up an old topic.

Does this solution still work?

Code: Select all

2016/12/23 23:02:27 [error] 169#169: *59 open() "/usr/share/nginx/html/forum/app.php/ajaxshoutbox/post" failed (20: Not a directory), client: myip, server: localhost, request: "POST /forum/app.php/ajaxshoutbox/post HTTP/1.1", host: "www.myforum", referrer: "http://www.myforum/forum/index.php?sid=a711f9003f9dcb9988be5de76c97466c"
2016/12/23 23:11:11 [error] 169#169: *60 open() "/usr/share/nginx/html/forum/app.php/ajaxshoutbox/post" failed (20: Not a directory), client: myip, server: localhost, request: "POST /forum/app.php/ajaxshoutbox/post HTTP/1.1", host: "www.myforum", referrer: "http://www.myforum/forum/index.php?sid=a711f9003f9dcb9988be5de76c97466c"

Re: VPS running nginx - using extensions

Posted: Mon Dec 26, 2016 12:28 am
by Shamalamadindong
For any people in the future finding this,

I spent 3 hours trying to fix this before i realized my mistake...


location /app.php {
try_files $uri $uri/ /forum/app.php?$query_string;
}