aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-09-24 09:39:01 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-09-24 09:39:01 +0200
commitd2f95ef875d394623f5bb656f530f04b42e9aef6 (patch)
treef4bf0a8a3b1b98bb2fce31855badcaaf43dff536
parent2436af94e3cc0249e4299a3773261f13822ee5df (diff)
parent537dca0892805350a5a3db51813703d895559a2c (diff)
downloadforums-d2f95ef875d394623f5bb656f530f04b42e9aef6.tar
forums-d2f95ef875d394623f5bb656f530f04b42e9aef6.tar.gz
forums-d2f95ef875d394623f5bb656f530f04b42e9aef6.tar.bz2
forums-d2f95ef875d394623f5bb656f530f04b42e9aef6.tar.xz
forums-d2f95ef875d394623f5bb656f530f04b42e9aef6.zip
Merge pull request #4460 from marc1706/ticket/14784
[ticket/14784] missing rewrite for lighttpd
-rw-r--r--phpBB/docs/lighttpd.sample.conf13
1 files changed, 11 insertions, 2 deletions
diff --git a/phpBB/docs/lighttpd.sample.conf b/phpBB/docs/lighttpd.sample.conf
index 5862cb319d..5b04122267 100644
--- a/phpBB/docs/lighttpd.sample.conf
+++ b/phpBB/docs/lighttpd.sample.conf
@@ -1,7 +1,7 @@
# Sample lighttpd configuration file for phpBB.
# Global settings have been removed, copy them
# from your system's lighttpd.conf.
-# Tested with lighttpd 1.4.26
+# Tested with lighttpd 1.4.35
# If you want to use the X-Sendfile feature,
# uncomment the 'allow-x-send-file' for the fastcgi
@@ -16,6 +16,7 @@
server.modules += (
"mod_access",
"mod_fastcgi",
+ "mod_rewrite",
"mod_accesslog"
)
@@ -49,7 +50,15 @@ $HTTP["host"] == "www.myforums.com" {
$HTTP["url"] =~ "/\.htaccess|/\.htpasswd|/\.htgroups" {
url.access-deny = ( "" )
}
-
+
+ # The following 3 lines will rewrite URLs passed through the front controller
+ # to not require app.php in the actual URL. In other words, a controller is
+ # by default accessed at /app.php/my/controller, but can also be accessed at
+ # /my/controller
+ url.rewrite-if-not-file = (
+ "^/(.*)$" => "/app.php/$1"
+ )
+
fastcgi.server = ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi",