aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2011-07-01 18:03:58 +0200
committerLaurent Bachelier <laurent@bachelier.name>2011-07-01 18:03:58 +0200
commit8bf4f0a00f08d654d9e611ec3ec046266d9352b2 (patch)
treecb432273250a8c3c05ee42053cd80688f8fb2004
parentDon't restart the server right away (diff)
downloadsymfttpd-8bf4f0a00f08d654d9e611ec3ec046266d9352b2.tar.xz
Force expiration of everything
-rw-r--r--data/lighttpd.conf.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/lighttpd.conf.php b/data/lighttpd.conf.php
index a078492..1e481d1 100644
--- a/data/lighttpd.conf.php
+++ b/data/lighttpd.conf.php
@@ -2,7 +2,8 @@ server.modules = (
"mod_rewrite",
"mod_access",
"mod_accesslog",
- "mod_fastcgi"
+ "mod_setenv",
+ "mod_fastcgi",
)
server.port = <?php echo $port ?>
@@ -28,6 +29,9 @@ fastcgi.server = ( ".php" =>
)
)
+setenv.add-response-header = ( "X-Symfttpd" => "1",
+ "Expires" => "Sun, 17 Mar 1985 00:42:00 GMT" )
+
include_shell "cat <?php echo escapeshellarg(dirname(__FILE__).'/mime-types.conf') ?>"
server.indexfiles = ("index.php", "index.html",
"index.htm", "default.htm")