mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/security-181] Port .htaccess changes to other webserver types
SECURITY-181
This commit is contained in:
parent
61683f895c
commit
7ba9b06881
3 changed files with 5 additions and 2 deletions
|
@ -37,7 +37,7 @@ $HTTP["host"] == "www.myforums.com" {
|
||||||
accesslog.filename = "/var/log/lighttpd/access-www.myforums.com.log"
|
accesslog.filename = "/var/log/lighttpd/access-www.myforums.com.log"
|
||||||
|
|
||||||
# Deny access to internal phpbb files.
|
# Deny access to internal phpbb files.
|
||||||
$HTTP["url"] =~ "^/(config\.php|common\.php|includes|cache|files|store|images/avatars/upload)" {
|
$HTTP["url"] =~ "^/(config\.php|common\.php|cache|files|images/avatars/upload|includes|phpbb|store|vendor)" {
|
||||||
url.access-deny = ( "" )
|
url.access-deny = ( "" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Deny access to internal phpbb files.
|
# Deny access to internal phpbb files.
|
||||||
location ~ /(config\.php|common\.php|includes|cache|files|store|images/avatars/upload) {
|
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|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.
|
||||||
|
|
|
@ -18,7 +18,10 @@
|
||||||
<hiddenSegments>
|
<hiddenSegments>
|
||||||
<add segment="cache" />
|
<add segment="cache" />
|
||||||
<add segment="files" />
|
<add segment="files" />
|
||||||
|
<add segment="includes" />
|
||||||
|
<add segment="phpbb" />
|
||||||
<add segment="store" />
|
<add segment="store" />
|
||||||
|
<add segment="vendor" />
|
||||||
<add segment="config.php" />
|
<add segment="config.php" />
|
||||||
<add segment="common.php" />
|
<add segment="common.php" />
|
||||||
</hiddenSegments>
|
</hiddenSegments>
|
||||||
|
|
Loading…
Add table
Reference in a new issue