ScaleScaleScaleScale

Tips / Nginx


Nginx configuration for phpBB

phpbb is one of the most usted forums on the planet. It usually runs well on any server, if you are tied to use it with apache webserver you will find the migration process to be not difficult at all. In this tutorial we will teach you how to translate phpbb .htaccess rules to nginx rewrite rules.

Here is the .htaccess file used in common phpbb installations:

Order Allow,Deny
Deny from All

or something like this too:

Options All -Indexes
#
# Deny access to forbidden directories and files
#
RewriteEngine   On
RewriteBase     / 
RewriteRule /(.|_|config.php$|common.php$)                          -  [forbidden]

So, converting apache’s .htaccess rules from phpbb to Nginx is pretty simple, as it is a very basic deny configuration:

location ~ /config.php|/common.php {
    deny all;
}

That’s it! Done converting phpbb .htaccess rules to Nginx.

Popular search terms:

  • phpbb nginx
  • phpbb3 install 404 nginx
  • debian phpbb nginx
  • hhvm phpbb nginx
profile

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking

  • Destination Sound

    Hi we’re having a really hard time figuring out how to make it work with nginx. Do you have a broad tutorial on how to set it up? Can’t seem to find anything online.