1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-15 20:17:36 +02:00

Merge branch '3.2.x'

This commit is contained in:
Marc Alexander 2017-10-31 15:47:14 +01:00
commit a51741df41
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -49,9 +49,7 @@ http {
server_name myforums.com; server_name myforums.com;
# A trick from http://wiki.nginx.org/Pitfalls#Taxing_Rewrites: # A trick from http://wiki.nginx.org/Pitfalls#Taxing_Rewrites:
rewrite ^ http://www.myforums.com$request_uri permanent; return 301 http://www.myforums.com$request_uri;
# Equivalent to:
#rewrite ^(.*)$ http://www.myforums.com$1 permanent;
} }
# The actual board domain. # The actual board domain.
@ -72,7 +70,7 @@ http {
} }
# Deny access to internal phpbb files. # Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|phpbb|store|vendor) { location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb|store|vendor) {
deny all; deny all;
# deny was ignored before 0.8.40 for connections over IPv6. # deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions. # Use internal directive to prohibit access on older versions.