From: <abe...@us...> - 2013-07-16 13:45:43
|
Revision: 6137 http://sourceforge.net/p/astlinux/code/6137 Author: abelbeck Date: 2013-07-16 13:45:40 +0000 (Tue, 16 Jul 2013) Log Message: ----------- lighttpd, for fop2, implement its .htaccess cache control Modified Paths: -------------- branches/1.0/package/lighttpd/lighttpd.conf Modified: branches/1.0/package/lighttpd/lighttpd.conf =================================================================== --- branches/1.0/package/lighttpd/lighttpd.conf 2013-07-15 13:33:42 UTC (rev 6136) +++ branches/1.0/package/lighttpd/lighttpd.conf 2013-07-16 13:45:40 UTC (rev 6137) @@ -1,6 +1,7 @@ server.name = "@HOSTNAME@" server.modules = ( + "mod_setenv", "mod_access", "mod_accesslog", "mod_auth", @@ -149,4 +150,12 @@ @PHONEPROV@} @FOP2@alias.url += ( "/fop2/" => "/stat/var/packages/fop2/html/" ) +@FOP2@ +@FOP2@$HTTP["url"] =~ "^/fop2/" { +@FOP2@ setenv.add-response-header = ( +@FOP2@ "Cache-Control" => "private, pre-check=0, post-check=0, max-age=0", +@FOP2@ "Expires" => "0", +@FOP2@ "Pragma" => "no-cache" +@FOP2@ ) +@FOP2@} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2013-08-03 18:41:09
|
Revision: 6163 http://sourceforge.net/p/astlinux/code/6163 Author: abelbeck Date: 2013-08-03 18:41:04 +0000 (Sat, 03 Aug 2013) Log Message: ----------- lighttpd, allow /fop2 to redirect to /fop2/ per Ingmar's request. Note this has side effects such that /fop2.php would alias to /fop2/.php (/stat/var/packages/fop2/html/.php) ignoring any local file by that name. Modified Paths: -------------- branches/1.0/package/lighttpd/lighttpd.conf Modified: branches/1.0/package/lighttpd/lighttpd.conf =================================================================== --- branches/1.0/package/lighttpd/lighttpd.conf 2013-08-02 16:18:15 UTC (rev 6162) +++ branches/1.0/package/lighttpd/lighttpd.conf 2013-08-03 18:41:04 UTC (rev 6163) @@ -149,7 +149,7 @@ @PHONEPROV@ } @PHONEPROV@} -@FOP2@alias.url += ( "/fop2/" => "/stat/var/packages/fop2/html/" ) +@FOP2@alias.url += ( "/fop2" => "/stat/var/packages/fop2/html/" ) @FOP2@ @FOP2@$HTTP["url"] =~ "^/fop2/" { @FOP2@ setenv.add-response-header = ( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2013-11-18 23:00:05
|
Revision: 6286 http://sourceforge.net/p/astlinux/code/6286 Author: abelbeck Date: 2013-11-18 23:00:00 +0000 (Mon, 18 Nov 2013) Log Message: ----------- lighttpd, restrict proxy's auth, /admin/cli/ to only user 'admin', and /admin/netstat/ to only 'admin' and 'staff' within lighttpd since the proxy's can be accessed outside of PHP's auth Modified Paths: -------------- branches/1.0/package/lighttpd/lighttpd.conf Modified: branches/1.0/package/lighttpd/lighttpd.conf =================================================================== --- branches/1.0/package/lighttpd/lighttpd.conf 2013-11-18 18:15:12 UTC (rev 6285) +++ branches/1.0/package/lighttpd/lighttpd.conf 2013-11-18 23:00:00 UTC (rev 6286) @@ -122,10 +122,22 @@ auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/var/www/admin/.htpasswd" -auth.require = ( "/admin" => +auth.require = ( "/admin/cli/" => ( "method" => "basic", "realm" => "admin", + "require" => "user=admin" + ), + "/admin/netstat/" => + ( + "method" => "basic", + "realm" => "admin", + "require" => "user=admin|user=staff" + ), + "/admin" => + ( + "method" => "basic", + "realm" => "admin", "require" => "valid-user" ) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2016-09-30 03:57:28
|
Revision: 7870 http://sourceforge.net/p/astlinux/code/7870 Author: abelbeck Date: 2016-09-30 03:57:26 +0000 (Fri, 30 Sep 2016) Log Message: ----------- lighttpd, web interface, force HTTP / to HTTPS /, followup to r7868 Revision Links: -------------- http://sourceforge.net/p/astlinux/code/7868 Modified Paths: -------------- branches/1.0/package/lighttpd/lighttpd.conf Modified: branches/1.0/package/lighttpd/lighttpd.conf =================================================================== --- branches/1.0/package/lighttpd/lighttpd.conf 2016-09-29 20:30:48 UTC (rev 7869) +++ branches/1.0/package/lighttpd/lighttpd.conf 2016-09-30 03:57:26 UTC (rev 7870) @@ -163,7 +163,8 @@ ## Redirect HTTP to HTTPS for /admin/ Authentication $HTTP["scheme"] == "http" { $HTTP["host"] =~ "^(.*)$" { - url.redirect = ( "^/(admin/.*)$" => "https://%1/$1" ) + url.redirect = ( "^/(admin/.*)$" => "https://%1/$1", + "^/$" => "https://%1/" ) } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |