Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15385

nginx sample config: www redirection, security regex

    Details

    • Type: Improvement
    • Status: Unverified Fix (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2-RC1
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      nginx 1.10.3

      Description

      nginx.sample.conf: www redirection, security regex

      according to the latest wiki info:
      http://wiki.nginx.org/Pitfalls#Taxing_Rewrites
      `return 301` is preferred over a rewrite.

      also, the 'security' regex breaks some official extensions because it
      will match and deny access to `/ext/phpbb`.
      looking through the names of dirs and files containing `phpbb`, it
      looks like the intent of the regex was to only disallow the folder
      `phpbb` in the root dir and not other `/phpbb` matches.
      a negative lookbehind was added to specifically not match `/ext/phpbb`
      but still match other occurrences of `/phpbb`.

      i've attached the config with the proposed changes.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              dingus33 dingus33
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: