https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412018-06-14T12:24:31Zlighty labsLighttpd - Bug #2891: setenv.add-response-header does not work with url.redirecthttps://redmine.lighttpd.net/issues/2891?journal_id=114682018-06-14T12:24:31Zgstrauss
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Invalid</i></li></ul><p>A simple test works just fine. Did you load the modules in the right order for mod_setenv to apply before mod_redirect generates a response?</p>
<pre>
server.document-root = "/valid/path/here"
server.modules = ( "mod_setenv", "mod_redirect" )
$SERVER["socket"] == ":8888" {
setenv.add-response-header = ( "Set-Cookie" => "Secure" )
url.redirect = (".*" => "https://test.env.fory.com$0")
}
</pre> Lighttpd - Bug #2891: setenv.add-response-header does not work with url.redirecthttps://redmine.lighttpd.net/issues/2891?journal_id=114692018-06-14T20:52:43Zfory
<ul></ul><p>Yes, Like I said, the simple dirlisting works fine. It does not work with url.redirect.</p> Lighttpd - Bug #2891: setenv.add-response-header does not work with url.redirecthttps://redmine.lighttpd.net/issues/2891?journal_id=114702018-06-14T21:56:17Zfory
<ul></ul><p>That was it. I needed to move "mod_setenv" before "mod_redirect". Thx for the tip.</p>