Skip to content

Commit

Permalink
v8.24
Browse files Browse the repository at this point in the history
- DietPi-Software | Nextcloud: Add rewrite rules for Lighttpd
  • Loading branch information
MichaIng committed Oct 28, 2023
1 parent a406892 commit 6c3352e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .conf/dps_114/lighttpd.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
)
}

# Rewrites
url.rewrite-once += (
"^/nextcloud/remote/(.*)" => "/nextcloud/remote.php/$1",
"^/nextcloud/ocm-provider($|/\?.*)" => "/nextcloud/index.php$1"
)
url.rewrite-if-not-file += (
"^/nextcloud/((core/ajax/update|cron|public|remote|status|ocs/v[12])\.php|ocs-provider/|updater/)" => "",
"^/nextcloud(.*)" => "/nextcloud/index.php$1"
)

}

0 comments on commit 6c3352e

Please sign in to comment.