summaryrefslogtreecommitdiffstats
path: root/lighttpd.conf
diff options
context:
space:
mode:
authormischa <mischa@rx.high5.nl>2019-03-17 16:05:15 +0100
committermischa <mischa@rx.high5.nl>2019-03-17 16:05:15 +0100
commit7c37705052180bcea07918f84bbe33e688385e48 (patch)
tree024ea9d2c68e7fb553ab9f0f8532d80331fba6ae /lighttpd.conf
parent16d4ddb8b1d6bac9c5e78c5f89ba2a348200397e (diff)
\. matches
Diffstat (limited to 'lighttpd.conf')
-rw-r--r--lighttpd.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/lighttpd.conf b/lighttpd.conf
index 2cd5425..90c62f6 100644
--- a/lighttpd.conf
+++ b/lighttpd.conf
@@ -70,17 +70,17 @@ $HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
server.max-keep-alive-requests = 0
}
-$HTTP["url"] =~ ".(js|css|png|jpg|jpeg|gif|ico)" {
+$HTTP["url"] =~ "\.(js|css|png|jpg|jpeg|gif|ico)$" {
expire.url = ( "" => "access plus 1 months" )
}
$HTTP["request-method"] =~ "^(PUT|PATCH|DELETE)$" {
url.access-deny = ("")
}
-$HTTP["url"] =~ "/(?:uploads|files|wp-content|wp-includes).*.(php|phps|txt|md|exe)$" {
+$HTTP["url"] =~ "/(?:uploads|files|wp-content|wp-includes).*\.(php|phps|txt|md|exe)$" {
url.access-deny = ("")
}
-$HTTP["url"] =~ "/(wp-config|xmlrpc).php" {
+$HTTP["url"] =~ "/(wp-config|xmlrpc)\.php$" {
url.access-deny = ("")
}