aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaude <longneck@scratchbook.ch>2018-09-30 16:42:51 +0200
committerClaude <longneck@scratchbook.ch>2018-09-30 16:42:51 +0200
commitaadb48832f7d92e769768254bbf1b7a2c6516999 (patch)
tree5ac2c34c9d3e97d199bddfa7afc85a93bc51d821
parent5e433758d56f603ce6fc0e490d59994ae1257076 (diff)
downloadstikked-fit-aadb48832f7d92e769768254bbf1b7a2c6516999.tar.gz
stikked-fit-aadb48832f7d92e769768254bbf1b7a2c6516999.tar.bz2
stikked-fit-aadb48832f7d92e769768254bbf1b7a2c6516999.zip
added rewrite-rules in doc for shorter urls. fixes #451
-rw-r--r--doc/webserver_sampleconfigs/lighttpd-site.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/webserver_sampleconfigs/lighttpd-site.conf b/doc/webserver_sampleconfigs/lighttpd-site.conf
index 677bf78..faadea8 100644
--- a/doc/webserver_sampleconfigs/lighttpd-site.conf
+++ b/doc/webserver_sampleconfigs/lighttpd-site.conf
@@ -17,6 +17,15 @@ $HTTP["host"] == "stikked" {
"^/(.*)$" => "/index.php$2",
)
+ ## you can use the following rewrite rules for shorter URLs,
+ ## like https://example.com/abc123de,
+ ## and for short raw form like https://example.com/abc123de/r or https://example.com/abc123de/raw
+ #url.rewrite-once = (
+ # "^/([0-9a-f]{8,})$" => "/index.php?/view/$1",
+ # "^/([0-9a-f]{8,})/(?:r|raw)$" => "/index.php?/view/raw/$1",
+ # "^/((?!index\.php|static|favicon\.ico|robots\.txt|sitemap\.xml|google(.+)\.html).+)$" => "/index.php?/$1"
+ #)
+
server.document-root = "/var/www/stikked/htdocs"
#accesslog.filename = "/var/log/lighttpd/stikked.access.log"

© 2014-2024 Faster IT GmbH | imprint | privacy policy