Welcome! Log In Create A New Profile

Advanced

Re: phpbb problems

Francis Daly
October 22, 2013 04:26PM
On Tue, Oct 22, 2013 at 06:03:40AM -0400, cyrus_the_great wrote:

Hi there,

> I am having some problems with phpbb loading the style sheets for the admin
> area, and also the URLs look strange which could be related.

Can you identify the exact urls of the style sheets that do not respond
the way you want?

Can you tell where the strange-looking URLs come from -- nginx config
or phpbb config or something else?

> root /var/www/sites/obfuscated_forum;

> location ~
> /(config\.php|common\.php|cache|files|images/avatars/upload|includes|store)
> {
> deny all;
> return 403;
> }

So, if the url includes any of those strings, it is denied.

> location ~* \.(gif|jpeg|jpg|png|css)$ {
> expires 30d;
> }

If the url ends in one of those strings, it should be served directly
from /var/www/sites/obfuscated_forum.

Does that include your style sheet url?

Is the matching file present?

> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9002;

> fastcgi_param SCRIPT_FILENAME
> /var/www/sites/obfuscated_forum$fastcgi_script_name;

> }

If the url ends in .php, it gets sent to the fastcgi server.

> This is what a link to the admin area looks like:
> http://obfuscatedforum.onion/adm/index.php/index.php?sid=e74213251b1867be1ca25ba667c4cb6b

The repeated /index.php looks odd. Did you type that? Or did something link to it?

> It does load and I can use the pages but the CSS stylesheet isn't coming
> through, nor are the images.

What do the nginx log files say about the CSS stylesheet and images requests?

> It would be good if phpbb was mentioned in the
> nginx wiki like drupal and other sites.

http://wiki.nginx.org/Configuration links to a suggested config file for phpBB3.

It is not identical to what you have here.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

phpbb problems

cyrus_the_great October 22, 2013 06:03AM

Re: phpbb problems

Francis Daly October 22, 2013 04:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 325
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